Skip to content

change did OAS param to use content instead of schema #2832

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

Merged
merged 4 commits into from
Feb 28, 2024

Conversation

woutslakhorst
Copy link
Member

fixes #2831

when using schema oapi codegen uses BindStyledParamWithOptions which does an url unescape. This is not needed since go already does this. When using port numbers in a DID this causes the : to be decoded (should remain percentage encoded)

note: oapi codegen also updated to 2.1.0

Copy link
Member

@gerardsn gerardsn left a comment

Choose a reason for hiding this comment

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

LGTM.
If I search for {did} in the docs/_static I find several other APIs. Should the same change be applied to (some of) these? (vdr/v2 and vcr/v2/holder are did:web specific)

Copy link
Member

@gerardsn gerardsn left a comment

Choose a reason for hiding this comment

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

/internal/vcr/v2/holder/{did}/vc/{id} has been added to vcr_v2.yaml on master since you started this PR.

@woutslakhorst woutslakhorst force-pushed the fix/2831/double_unescape_path branch from dd61b4f to a3cc3b2 Compare February 28, 2024 11:58
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.

OAPICodeGen runtime double unescapes path params
2 participants