Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate OpenAPI v3.0 schema for Arrays #525

Merged
merged 1 commit into from
Nov 2, 2021
Merged

Conversation

cari-lynn
Copy link
Contributor

@cari-lynn cari-lynn commented Oct 27, 2021

Important takeaways:

  1. maps and arrays supported
  2. @schema/type any=True and @schema/nullable not yet supported
  3. known issue where functions must be defined prior to @data/values-schema definition (not introduced in this PR) (covered in Hoist functions from their templates to resolve authoring awkwardness #526)

pkg/schema/openapi.go Show resolved Hide resolved
pkg/schema/annotations.go Outdated Show resolved Hide resolved
pivotaljohn pushed a commit that referenced this pull request Nov 2, 2021
- type check @schema/default value prior to exporting an OpenAPI schema
- explicitly disallow @schema/default on DocSets, Arrays, and Maps (see
  also: #525 (comment))

Co-authored-by: John Ryan <jtigger@infosysengr.com>
- type check @schema/default value prior to exporting an OpenAPI schema
- explicitly disallow @schema/default on DocSets, Arrays, and Maps (see
  also: #525 (comment))

Co-authored-by: John Ryan <jtigger@infosysengr.com>
@pivotaljohn pivotaljohn merged commit 21693f7 into develop Nov 2, 2021
@pivotaljohn pivotaljohn deleted the openapi-360 branch November 2, 2021 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants