Skip to content

validate enum naming and descend deeper into sub-schemas#7

Merged
ahl merged 4 commits into
mainfrom
enums
May 13, 2022
Merged

validate enum naming and descend deeper into sub-schemas#7
ahl merged 4 commits into
mainfrom
enums

Conversation

@ahl

@ahl ahl commented May 9, 2022

Copy link
Copy Markdown
Collaborator

Previously, the schema walker would terminate at a given schema without descending into child schemas. This adds the navigation of those child schemas:

  • schemas for object properties (named and unnamed)
  • schema for an array's items
  • subschemas for oneOf, allOf, anyOf, and not constructions

Move us from convert_case to heck as we have with typify and progenitor for more serde-like case conversion.

Adds a check that enumerated values should be snake_case as with object properties. This makes case conversion for enums consistent regardless of the tagging scheme.

@ahl ahl merged commit 9b20f89 into main May 13, 2022
@ahl ahl deleted the enums branch May 13, 2022 14:43
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.

1 participant