Skip to content

References in nested schema do not match naming strategy #688

@kylebloom-ifgl

Description

@kylebloom-ifgl

Description

When creating schema definitions with ToOpenApiSchemas the "$ref" paths do not use the provided CamelCaseNamingStrategy.

Expected:

definitions:
  foo:
    type: object
    properties:
      bar:
        $ref: '#/definitions/bar'
  bar:
    type: object
    properties:
      data:
        type: string

Actual:

definitions:
  foo:
    type: object
    properties:
      bar:
        $ref: '#/definitions/Bar'
  bar:
    type: object
    properties:
      data:
        type: string

This causes issues when validating the swagger document.

Steps to reproduce

Sample project to come

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions