Skip to content

HAL link definition clashing with naming conventions  #152

@acabarbaye

Description

@acabarbaye

Describe the bug
When describing hal links (http://stateless.co/hal_specification.html) (as property), their naming convention defers from other properties:
e.g. _links, _embedded, _metadata
https://tools.ietf.org/html/draft-kelly-json-hal-08

To Reproduce
e.g.

title: Items
      type: object
      properties:
        _links:
          $ref: "#/components/schemas/LinksDefinition"

results in

*ERROR* in model Items '_embedded' -> property should be in camelCase
*ERROR* in model Items '_links' -> property should be in camelCase
*ERROR* in model Items '_metadata' -> property should be in camelCase

Expected behavior
No error raised for HAL links specific keywords (i.e._links, _embedded, _metadata) as we have no control over their naming

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions