Skip to content

Consistent use of property name in schema examples: petType vs pet_type - #1674

Merged
webron merged 1 commit into
OAI:v3.0.2-devfrom
RepreZen:v3.0.2-dev-discriminator-pet_type
Oct 3, 2018
Merged

webron merged 1 commit into
OAI:v3.0.2-devfrom
RepreZen:v3.0.2-dev-discriminator-pet_type

Conversation

@tfesenko

Copy link
Copy Markdown
Contributor
  • Pet Schema in the MediaTypes Examples and Schema Object Examples uses the camelCase notation: petType,
  • While Pets from the Discriminator Object use snake_case: pet_type.

It's inconsistent.

I chose the camelCase notation because it's used for propertyNames by the OpenAPI specification itself.

* Pet Schema in the MediaTypes Examples and Schema Object Examples uses the camelCase notation(petType),
* While Pets from the Discriminator Object use snake_case (pet_type).
It's inconsistent.

I chose the camelCase notation because it's used for propertyNames by the OpenAPI specification itself.

@MikeRalphson MikeRalphson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@webron
webron merged commit 1bdda2f into OAI:v3.0.2-dev Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants