Skip to content

Schemas are parsed in spinal case instead of camel case when using path references #124

Closed
@rombru

Description

@rombru

Hello,

When using path reference,

  '/users/{userId}':
    $ref: ./apis/user.v1.yaml#/paths/~1users~1{userId}

The schemas used by the referenced path are parsed in spinal-case,
public class user {

For schemas whose name is in several parts, like UserSearch, the parser writes a hyphen (user-search) and stops because the syntax of java doesn't support that.

Because it's a bit complicated to exlain I've attached the full example
openapi-bug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions