-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support for Specific Metadata #38
Comments
Not sure I understand the context -- is this something that would go into the metadata section of the blueprint? |
Sorry I have updated the description. Hope it is much clearer now. Let me know should there be any questions. Thanks. |
Why are there two metadata fields in the AST?
|
The line #2 metadata are holding current blueprint global metadata. It is a good point that we might want to distinguish these two. Please take this pseudo AST just as a mere sketch of what it could be. Suggestions how to distinguish between global blueprint metadata and specific metadata (is it really needed?) welcomed! |
@zdne Maybe just name the second one +UserMetadata (and usermetadata in the JSON) or something (LocalMetadata?).
You don't know what kinds of information users need to encode, but you can be certain that some users will have extra metadata and not being able to include it could be a deal-breaker. |
Well the little inconstancy here is that the current 1A format is using the MultiMarkdown (and Jekyll/YAML)-style of metadata at the top of every blueprint file. E.g.
This is sort of global metadata to the blueprint. What we want to do is to introduce specific metadata at pretty much an point like so:
Which is little bit inconsistent with the 1A syntax for global metadata... |
@fosdev +1 for GlobalMetadata v. Metadata |
@zdne Ok, so seems the simple one is to have one tag that is GlobalMetadata (which would show up in your YAML as globalMetadata) and the other more generic, though that may cause some backwards compatibility issues, if I understand the situation. I think that the idea of arbitrary metadata is keep it arbitrary vs. locked to specific keys that are limiting over time and maybe only specify specific Metadata tags for internal metadata for blueprint to separate it from user specified metadata. Make any sense? |
Also refer to #27 |
Gentlemen, Please let me know what do you think and whether the concept of traits will address your expectation for metadata. |
I am studying it with high hopes :) Robert On Tue, Dec 17, 2013 at 12:57 PM, Z [email protected] wrote:
Robert Crooks |
To be addressed (and closed) with #47. |
We would love to have tool-specific metadata on the per-api level. We have some flags and tokens that we use to generate custom code from API description. Mostly we will need booleans and strings. Having per-resource metadata is currently an overkill for us. However, I do see its usefulness e.g., to override some global settings. This feature will truly make API Blueprint superior to other formats. |
Hey @apimatic were you able to work around this with https://apimatic.io/blog/post/api-blueprint-extension-for-code-generation-settings ? If not please lets discuss any additional needs here. Closing for now. |
Yes, the metadata parsing works great. We already have people who are using Kind Regards, Zeeshan Ejaz Bhatti CTO / Co-Founder APIMATIC Ltd. Skype: zeeshan.ejaz On Wed, Dec 2, 2015 at 1:52 AM, Z [email protected] wrote:
|
Glad to hear! Thanks! |
Various toolings might have a need for a tooling-specific metadata at different point in blueprint. A solution would be to add a syntax construct that would be expected wherever a Markdown formatted discussion is expected and that would provide (potentially recursive) "key: value" notation.
E.g.:
Which would be reflected in AST like
The text was updated successfully, but these errors were encountered: