Closed j-d-carmichael closed 10 months ago
main index might look like this:
{{ inject([ { toAllOperations: { excludePaths: [ '/health' ], content: { tags: [ '{{ autoTag() }}' ], summary: '{{ autoSummary() }}', operationId: '{{ uniqueOpId() }}', 'x-permission': '{{ routePermission() }}', security: [{ jwtToken: [] }], responses: { '200': { description: 'OK' }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, '403': { description: 'Forbidden' }, '406': { description: 'Not Acceptable' } } } } }, { toAllOperations: { includeMethods: ['post', 'patch'], content: { responses: { '422': { description: 'Not Acceptable' } } } } } ]) }}
A path file like this:
parameters: - $ref: ../../../components/parameters/pathId.yml responses: '200': content: application/json: schema: $ref: ../../../components/schemas/user/model.yml
The final output results in the order being non-standard:
parameters: - $ref: ../../../components/parameters/pathId.yml responses: '200': content: application/json: schema: $ref: ../../../components/schemas/user/model.yml description: OK '400': description: Bad Request '401': description: Unauthorized '403': description: Forbidden '406': description: Not Acceptable tags: - Users summary: Get users based on {id} operationId: usersIdGet x-permission: userRolePermissionsReadUsersIdGet security: - jwtToken: []
resolved in 4.11.0
main index might look like this:
A path file like this:
The final output results in the order being non-standard: