drafter
drafter copied to clipboard
API Blueprint Parser (C++)
@goganchic opened apiaryio/snowcrash#438 Recently I've found such test https://github.com/apiaryio/snowcrash/blob/master/test/test-ResourceGroupParser.cc#L103-L133 It tries to process such apib with resource group parser: ```apib # Group ## /r1 p1 ## /r2 p2 ``` This...
There should be define behavior for NumberElement while converted to JSON, because JSON does not allow values like `Nan` For more info see https://github.com/apiaryio/drafter/pull/603#pullrequestreview-154207716
`fixed`, `required` and `optional` are allowed for mixin definitions. # Input ``` apib # Data Structures # A + a: a # B + b: b + Include (A, optional)...
For example, if I want to reference another data structure inside an array of fixed-type. I'd like to provide multiple examples to be rendered in the JSON array example. ```apib...
```apib # GET / + Response 200 (application/json) + Attributes (array, fixed) + a + b (optional) + c ```
``` apib # Data Structures ## E (object) - entities (array[A]) ## A (object) - Include E ``` ### Expected Parse without error or warning. ### Actual Gives circular reference...
drafter warns about an "incorrect relation identifier", that is actually correct. Define a correct relation identifier that is an URL: ``` + Relation: http://test.com/order ``` And drafter will say: "relation...
In the generated JSON: ```js { "attributes": { "href": { "element": "string", "content": "/resource" } } } ``` should be replaced with ```js { "attributes": { "href": { "element": "href",...
Given following API Blueprint ```apib FORMAT: 1A # Cats API # User Authentication [GET v6/auth] Logins an a user and gives them an accesss token + Request (application/json) { "username":...