-
Notifications
You must be signed in to change notification settings - Fork 10
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
deck file patch
with path lengths > 128 characters
#198
Comments
proposed fix: go-yaml/yaml#1037 |
@Tieske On merging the changes you suggested here in our own fork, we don't get errors anymore in case any path in OpenAPI spec >128 chars, but the rendered yaml doesn't consider the "path with len >128 chars" as a simple key. We get a complex key - complex value mapping in the output post a Note: The rendered spec is still valid, just the path key isn't treated as simple anymore. |
I do not follow. The example is an OAS file, so that is the input to deck, correct? so where do we create this file, if it was written by deck? |
I wanted to clarify that does this change from a simple key input to a "complex key" output need to be documented somewhere for deck? |
@mheap I had a word with Thijs about the yaml output changes. The generated yaml (with complex key mapping) works fine with other deck commands like patch, openapi2kong, etc. and a subsequent deck sync works fine as well. To clarify: the complex key yaml output shows up only if the path length is >128 characters. Otherwise, the output is a simple key mapping (as earlier). |
No changes needed elsewhere. Please ship the fix |
This change allows deck commands to process OAS files with path lengths > 128 characters which was a limitation from an underlying library. This is fixed in the fork created in Kong git account. Fixes: Kong/go-apiops#198
This change allows deck commands to process OAS files with path lengths > 128 characters which was a limitation from an underlying library. This is fixed in the fork created in Kong git account. Fixes: Kong/go-apiops#198
Running
deck file patch
on an OpenAPI spec where the path is > 128 characters in length throws an error:Related GH issues:
go-yaml/yaml#1031
go-yaml/yaml#849
Proposed resolution: Fork
go-yaml
and use our own fork until the upstream PR is acceptedThe text was updated successfully, but these errors were encountered: