We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm parsing the 07. Parameters.md example blueprint. There's following markup:
+ Parameters + limit (number, optional) - The maximum number of results to return. + Default: `20`
Using drafter -f json (v2.3.0-pre.1), it's parsed as
drafter -f json
{ "element": "member", "meta": { "description": "The maximum number of results to return." }, "attributes": { "typeAttributes": [ "optional" ] }, "content": { "key": { "element": "string", "content": "limit" }, "value": { "element": "number", "attributes": { "default": "20" }, "content": 0 } } }
Notice the "content": 0 part. Nobody specified value of the parameter should be 0 in the original markup. If I try to provide following:
"content": 0
0
+ Attributes + limit (number, optional) - The maximum number of results to return. + Default: `20`
Then it's parsed as:
{ "element": "object", "content": [ { "element": "member", "meta": { "description": "The maximum number of results to return." }, "attributes": { "typeAttributes": [ "optional" ] }, "content": { "key": { "element": "string", "content": "limit" }, "value": { "element": "number", "attributes": { "default": 20 } } } } ] }
i.e. correctly, just with the default value.
The text was updated successfully, but these errors were encountered:
Similarily, we have issues with
# GET /{id} + Parameters + id
# GET /{id} + Parameters + id (boolean)
Sorry, something went wrong.
No branches or pull requests
I'm parsing the 07. Parameters.md example blueprint. There's following markup:
Using
drafter -f json
(v2.3.0-pre.1), it's parsed asNotice the
"content": 0
part. Nobody specified value of the parameter should be0
in the original markup. If I try to provide following:Then it's parsed as:
i.e. correctly, just with the default value.
The text was updated successfully, but these errors were encountered: