OpenAPI definitions.yml contains duplicate key (due to excess indentation)
/label Type: Bug Status: Need triage
Steps to reproduce
Attempt to resolve https://docs.funkwhale.audio/swagger/swagger.yml or parse https://docs.funkwhale.audio/swagger/api/definitions.yml with a YAML compliant parser. Please let me know if you require further steps here or a proof-of-concept demo.
What happens?
GET /home/mike/node/fw/api/definitions.yml #/RadioSessionCreate
YAMLSemanticError: Map keys must be unique; "type" is repeated at line 729, column 3:
type: "object"
^^^^^^^^^^^^^^…
nodeType: 'MAP',
range: Range { start: 17128, end: 19819 },
linePos: { start: { line: 729, col: 3 }, end: { line: 817, col: 1 } }
What is expected?
The indentation of QuotaStatus
on line 774 means the Me
and QuotaStatus
definitions get merged together (resulting in the duplicate key error). This line should be unindented to column 0.
Context
Purely using https://docs.funkwhale.audio/swagger/swagger.yml - no instance as yet.
Funkwhale version(s) affected: x.y