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(dynamite): Fix nullable someOf parameters #1272

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

Leptopoda
Copy link
Member

@Leptopoda Leptopoda force-pushed the fix/dynamite/some-of-parameters-leptopoda branch from 465d040 to d819c88 Compare December 11, 2023 16:21
@Leptopoda
Copy link
Member Author

I think that it's probably easier to just call serialize (and not encode) on the typeresult and let the uri template handle the rest #1097.
I'll give it a try.

@provokateurin
Copy link
Member

That sounds good yeah

@provokateurin
Copy link
Member

yet another problem related to parameter serialization: pattern checking does not work on string values. I would argue it is useless because it is an enum already, but it is a valid spec and also happens to appear in Talk.

@Leptopoda
Copy link
Member Author

Pattern checking requires a bigger makeover.
Can you report an example spec to #1247?
Or open a new issue and mention it from there.

@provokateurin
Copy link
Member

I commented on the issue, but I feel like the problem is just the parameter serialization. The value needs to be serialized before checking the pattern (would be at least one way to fix it).

@Leptopoda Leptopoda force-pushed the fix/dynamite/some-of-parameters-leptopoda branch 2 times, most recently from 4bd2cb8 to 94262b5 Compare December 16, 2023 17:19
@Leptopoda
Copy link
Member Author

Leptopoda commented Dec 16, 2023

Still based on #1292

Signed-off-by: jld3103 <[email protected]>
Signed-off-by: Nikolas Rimikis <[email protected]>
@Leptopoda Leptopoda force-pushed the fix/dynamite/some-of-parameters-leptopoda branch from 94262b5 to 0afd4db Compare December 17, 2023 10:15
@Leptopoda Leptopoda enabled auto-merge December 17, 2023 10:15
@Leptopoda Leptopoda merged commit dc1b707 into main Dec 17, 2023
8 checks passed
@Leptopoda Leptopoda deleted the fix/dynamite/some-of-parameters-leptopoda branch December 17, 2023 10:34
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