-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
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
[Fleet] Improve OpenAPI accuracy and validity #105679
[Fleet] Improve OpenAPI accuracy and validity #105679
Conversation
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Page load bundle
To update your PR or re-run it, just comment with: cc @jfsiii |
Pinging @elastic/fleet (Team:Fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thank you for all the work here! 🚀
* Improve schema from object to $ref * Add description and response schema for /agent-status endpoint * Remove code related to removed /install/:os endpoint * Add response schemas for enrollment-api-key operations * Add response schemas for /agents/:agentId * Fix two security scheme names * Change format for reference selectors * Replace Ingest Manager with Fleet in OpenAPI spec * Replace instances of Ingest Manager with Fleet * Update instructions to create bundled specs
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* Improve schema from object to $ref * Add description and response schema for /agent-status endpoint * Remove code related to removed /install/:os endpoint * Add response schemas for enrollment-api-key operations * Add response schemas for /agents/:agentId * Fix two security scheme names * Change format for reference selectors * Replace Ingest Manager with Fleet in OpenAPI spec * Replace instances of Ingest Manager with Fleet * Update instructions to create bundled specs
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* Improve schema from object to $ref * Add description and response schema for /agent-status endpoint * Remove code related to removed /install/:os endpoint * Add response schemas for enrollment-api-key operations * Add response schemas for /agents/:agentId * Fix two security scheme names * Change format for reference selectors * Replace Ingest Manager with Fleet in OpenAPI spec * Replace instances of Ingest Manager with Fleet * Update instructions to create bundled specs Co-authored-by: John Schulz <[email protected]>
* Improve schema from object to $ref * Add description and response schema for /agent-status endpoint * Remove code related to removed /install/:os endpoint * Add response schemas for enrollment-api-key operations * Add response schemas for /agents/:agentId * Fix two security scheme names * Change format for reference selectors * Replace Ingest Manager with Fleet in OpenAPI spec * Replace instances of Ingest Manager with Fleet * Update instructions to create bundled specs Co-authored-by: John Schulz <[email protected]>
Fix the typo in #105679 which indicates `/agents` returns a list of agent policy objects instead of the correct list of agents. diff from `/paths/agents.yaml` ```diff - $ref: ../components/schemas/agent_policy.yaml + $ref: ../components/schemas/agent.yaml ``` <details><summary>screenshot - before</summary> <img width="1293" alt="Screen Shot 2021-07-15 at 12 39 14 PM" src="https://user-images.githubusercontent.com/57655/125829619-ddbd74f4-8806-45c4-af94-4b7645e2dc9b.png"> </details> <details><summary>screenshot - after</summary> <img width="1302" alt="Screen Shot 2021-07-15 at 12 39 33 PM" src="https://user-images.githubusercontent.com/57655/125829622-2715d071-14ee-4a2d-9ff5-96ece4eea682.png"> </details>
Fix the typo in elastic#105679 which indicates `/agents` returns a list of agent policy objects instead of the correct list of agents. diff from `/paths/agents.yaml` ```diff - $ref: ../components/schemas/agent_policy.yaml + $ref: ../components/schemas/agent.yaml ``` <details><summary>screenshot - before</summary> <img width="1293" alt="Screen Shot 2021-07-15 at 12 39 14 PM" src="https://user-images.githubusercontent.com/57655/125829619-ddbd74f4-8806-45c4-af94-4b7645e2dc9b.png"> </details> <details><summary>screenshot - after</summary> <img width="1302" alt="Screen Shot 2021-07-15 at 12 39 33 PM" src="https://user-images.githubusercontent.com/57655/125829622-2715d071-14ee-4a2d-9ff5-96ece4eea682.png"> </details>
Fix the typo in elastic#105679 which indicates `/agents` returns a list of agent policy objects instead of the correct list of agents. diff from `/paths/agents.yaml` ```diff - $ref: ../components/schemas/agent_policy.yaml + $ref: ../components/schemas/agent.yaml ``` <details><summary>screenshot - before</summary> <img width="1293" alt="Screen Shot 2021-07-15 at 12 39 14 PM" src="https://user-images.githubusercontent.com/57655/125829619-ddbd74f4-8806-45c4-af94-4b7645e2dc9b.png"> </details> <details><summary>screenshot - after</summary> <img width="1302" alt="Screen Shot 2021-07-15 at 12 39 33 PM" src="https://user-images.githubusercontent.com/57655/125829622-2715d071-14ee-4a2d-9ff5-96ece4eea682.png"> </details>
Fix the typo in #105679 which indicates `/agents` returns a list of agent policy objects instead of the correct list of agents. diff from `/paths/agents.yaml` ```diff - $ref: ../components/schemas/agent_policy.yaml + $ref: ../components/schemas/agent.yaml ``` <details><summary>screenshot - before</summary> <img width="1293" alt="Screen Shot 2021-07-15 at 12 39 14 PM" src="https://user-images.githubusercontent.com/57655/125829619-ddbd74f4-8806-45c4-af94-4b7645e2dc9b.png"> </details> <details><summary>screenshot - after</summary> <img width="1302" alt="Screen Shot 2021-07-15 at 12 39 33 PM" src="https://user-images.githubusercontent.com/57655/125829622-2715d071-14ee-4a2d-9ff5-96ece4eea682.png"> </details> Co-authored-by: John Schulz <[email protected]>
Fix the typo in #105679 which indicates `/agents` returns a list of agent policy objects instead of the correct list of agents. diff from `/paths/agents.yaml` ```diff - $ref: ../components/schemas/agent_policy.yaml + $ref: ../components/schemas/agent.yaml ``` <details><summary>screenshot - before</summary> <img width="1293" alt="Screen Shot 2021-07-15 at 12 39 14 PM" src="https://user-images.githubusercontent.com/57655/125829619-ddbd74f4-8806-45c4-af94-4b7645e2dc9b.png"> </details> <details><summary>screenshot - after</summary> <img width="1302" alt="Screen Shot 2021-07-15 at 12 39 33 PM" src="https://user-images.githubusercontent.com/57655/125829622-2715d071-14ee-4a2d-9ff5-96ece4eea682.png"> </details> Co-authored-by: John Schulz <[email protected]>
Summary
OpenAPI spec now validates (no errors. only some debatable warnings). Perhaps easier to read as individual commits
master
)Validation
apitools.dev
npx @redocly/openapi-cli lint entrypoint.yaml
Doc viewer choices
redocly example
Checklist