learn.openapis.org icon indicating copy to clipboard operation
learn.openapis.org copied to clipboard

Fixing syntax of security in TicTacToe OpenAPI example

Open karelhusa opened this issue 1 year ago • 1 comments

The provided tictactoe.yaml OpenAPI example is not valid and fails to be rendered in Redocly.

Security element's type is an array. I have fixed the syntax in security of the operations.

karelhusa avatar Feb 16 '24 06:02 karelhusa

Thanks for spotting and fixing this @karelhusa, these should indeed be array elements.

I have one question about the security on the get-board operation though, looking at the docs it seems like the keys in security array for an operation should be reflected in the components.securitySchemes - so should this be defaultApiKey here?

lornajane avatar Feb 24 '24 19:02 lornajane

PR #102 has incorporated this fix, so between that and the lack of reply for a few months I'm going to close this PR in favor of that one. But thank you for submitting it as it helped spot an error in the other PR's version of this!

handrews avatar Jun 03 '24 20:06 handrews