-
Notifications
You must be signed in to change notification settings - Fork 128
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 openapi2kong
should add _info
to generated decK file
#1022
Comments
deck file openapi2kong
should add _info
to generated decK file
sorry for the long delay in responding, but had to give this some thought. Select-tags and tags are not the same thing. Tags are a Kong property, where select-tags are a decK 'mechanism'. This also means we named the I was thinking we can add a flag to the conversion, eg;
and probably the @rspurgeon thoughts? |
This approach aligns well to our thinking. Looking forward to seeing the solution and can provide "beta testing." |
Thanks for the issue submission @timothystone-knsl and response @Tieske . Right now FWIW I think CLI interface idea may be simplified if we switch off the first non-whitespace character of the provided value. User could specify specific tags directly on the CLI which don't have to match the file
Or they could use a selector:
Which also might allow for more flexibility, like this one?
Open to objections of course. |
@rspurgeon are you saying the following is currently supported:
or suggesting support for? If supported, these are undocumented arguments to the Recall, many organizations see the OAS document as the Document of Record. My team believes that without |
@timothystone-knsl I'm suggesting that if we proceeded with the suggestion to inject tags into the generated deck configuration via command line, that it could be done in the way I suggest instead of having multiple flags on the CLI. My suggestion here is just pseduo code, sorry, I did not intend for it to be exactly accurate as to the CLI keys & values. Here is my more accurate suggestion. Allows a user to specify any array of string tags on the shell:
Allows a user to specify tags via values in the input state file with a selctor:
The behavior can be switched off the first character in the value of the flag. We don't need two different flags. LMK what you think |
@timothystone-knsl There is a solution that you may be able to use today that is semi-equivalent to the suggested CLI addition. You could pipe together the
I used
If you want to add values from the file, then yes you'd need some more 'yaml gymnastics'. I will add an internal tracking ticket to support the idea as discussed. Thanks for the issue. |
I like the thinking in both approaches. I'm sharing internally as well, @rspurgeon |
Ideally, the
deck file openapi2kong -s openapi.yaml -o deck.yaml
should produced the_info
element in the resulting deck file. For example, given this OpenAPI Spec withx-kong-tags
:deck.yaml
We see the OpenAPI spec as the single source of truth in our service architecture. As
deck
can have the tendency to clobber a database state absent theselect_tags
and adding the_info
element would have to occur outside a CI pipeline this missing element seems like it should be addressed.We don't see a workflow where deck files are produced outside of a CI pipeline and independently committed to a repository by Pull or Merge Request where a manual step is necessary to assure this value is set.
The text was updated successfully, but these errors were encountered: