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

Schema annotations 3.1 #1801

Merged
merged 3 commits into from
May 9, 2024
Merged

Conversation

Azquelt
Copy link
Contributor

@Azquelt Azquelt commented Apr 16, 2024

Implement the @Schema and @SchemaProperty changes from eclipse/microprofile-open-api#601.

I haven't duplicated cases which are already covered by the TCK.

@Azquelt
Copy link
Contributor Author

Azquelt commented Apr 16, 2024

In e83724a I made some of the scanner tests output the actual JSON document in the event of a failure because it was more helpful to me during development than configuring logging and finding the logs, but that part is not relevant to the actual changes and can be dropped if desired.

Include the full JSON output from the scanner when a test fails, to
avoid needing to search the logs and enable debug logging.
Tests for:
- if/then/else
- allOf/anyOf/oneOf/not
- dependentSchemas
- prefixItems
- contains/maxContains/minContains
- propertyNames
- patternProperties
- contentEncoding
- contentMediaType
- contentSchema
@Azquelt
Copy link
Contributor Author

Azquelt commented May 7, 2024

CI will not run cleanly until eclipse/microprofile-open-api#601 is merged but I have built and run this change locally with no failures.

@Azquelt Azquelt marked this pull request as ready for review May 7, 2024 17:13
Copy link
Member

@MikeEdgar MikeEdgar left a comment

Choose a reason for hiding this comment

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

Looks good. Let's leave it open until there's a good run of the TCK against a new MP snapshot.

- examples
- comment
- if/then/elseSchema
- dependentSchemas
- prefixItems
- contains/minContains/maxContains
- patternProperties
- propertyNames
- constValue
- dependentRequired
- contentEncoding/contentMediaType/contentSchema
@Azquelt
Copy link
Contributor Author

Azquelt commented May 8, 2024

@MikeEdgar we now have a good build

@MikeEdgar MikeEdgar merged commit 7cdd1cc into smallrye:main-4.0 May 9, 2024
2 of 5 checks passed
@MikeEdgar MikeEdgar added this to the 4.0.0 milestone May 9, 2024
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.

2 participants