Closed XaaXaaX closed 1 month ago
Latest commit: a19d4ca4834f8649ef444c7d817dab6759ba6ef2
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
I wonder if it is worth having keepOriginalSpec as true by default? It not being true makes it a breaking change as the generator used to preserve the contents as is:
Small comment on the name... keepOriginalSpec
- to me it suggests that if false the original file will be deleted.
How about saveParsedOuput
instead?
saveParsedOuput
I wonder if it is worth having keepOriginalSpec as true by default? It not being true makes it a breaking change as the generator used to preserve the contents as is:
Small comment on the name...
keepOriginalSpec
- to me it suggests that if false the original file will be deleted. How aboutsaveParsedOuput
instead?
Yes @codingnuclei , the actual system automatically persists the parsed version of spec, so keeping the original spec by default sounds a breaking change, i was waiting for some comments on param naming, sounds fair and is more explicit as it describes the existence of an spec but also the existence of a parsed version.
i suggest using saveParsedSpecFile
instead of saveParsedOuput
as this will be misleading in generator config, i will understand it as , persisting the Service , and events from the spec in the catalog or not ( you see the point? )
@boyney123 @codingnuclei new commit to resolve #47 but pushed it to the same branch by accident, if it can go together i leave it as is, otherwise , i can do two separate PRs
thanks @XaaXaaX , I updated the code, added some generic stuff to the SDK (get specs by service id, which we will need in other plugins too).
Apart from that happy with the code and breaking changes. I'm also going to add more breaking changes into another PR to remove folderID and enforce a service id.
Thank you @XaaXaaX !
Motivation
Keep original spec instead of Parsed one via a generator parameter