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

Fix $ref URIs to be RFC3986-compliant #411

Merged

Conversation

rlebran
Copy link
Contributor

@rlebran rlebran commented Apr 4, 2022

Hi,

Using the latest paperclip release (v0.7.0) I encountered a validation error with schema references.
When using the openapi json in test_app on editor.swagger.io, these kind of messages appears:

Semantic error at paths./cats.post.parameters.0.schema.$ref
$ref values must be RFC3986-compliant percent-encoded URIs
Jump to line 59

@rlebran rlebran changed the title Fix URIs to be RFC3986-compliant Fix $ref URIs to be RFC3986-compliant Apr 4, 2022
@tiagolobocastro tiagolobocastro merged commit fce291b into paperclip-rs:master Apr 5, 2022
tiagolobocastro added a commit that referenced this pull request Jul 27, 2022
- Add support for `PATCH` methods. [PR#422](#422)
- Add support for header parameters through the newly introduced `Apiv2Header` derive macro. [PR#413](#413)
- Add support for [RapiDoc UI](https://mrin9.github.io/RapiDoc/index.html). [PR#420](#420)
- Add example support for derived `Apiv2Schema`. [PR#421](#421)
- Add ability to not generate documentation for some operations through the skip attribute on api_v2_schema macro. [PR#423](#423)
- Add support for deprecated operations. [PR#424](#424)

- Fix missing slash between url parts [PR#416](#416)
- Properly support non-BoxBody response payload types [PR#414](#414)
- Fix required fields definition when using serde flatten [PR#412](#412)
- Fix reference urls not being RFC3986-compliant [PR#411](#411)
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