configuration:
title: TestAPI
description: Demonstrates the bug that any code other than 200 results in a parser error
uri: localhost:123456/
versions:
v1.0:
display: true
label: Version 1.0
status: beta
major: 1
minor: 0
methods:
Test:
label: TestPost
uri: /
code: 200
method: POST
description: Submits something, so that HTTP Response 202 is valid
Replacing code: 200 with code: 202 (or any other number that is not 200) results in a parser error:
This sample YAML file works perfectly if run with
apidoc -i path/to/working_api.yml
Replacing
code: 200
withcode: 202
(or any other number that is not 200) results in a parser error:From the description of the code parameter from the documentation I can not tell why this should be valid behavior.