Skip to content

Instantly share code, notes, and snippets.

@rquackenbush
Created May 24, 2023 19:12
Show Gist options
  • Save rquackenbush/1880b3466dc8abc358fda8149f6a899f to your computer and use it in GitHub Desktop.
Save rquackenbush/1880b3466dc8abc358fda8149f6a899f to your computer and use it in GitHub Desktop.
Autorest directive that sets the description
directive:
- from: openapi-document
  where: '$.paths["/health/startup"].get'
  debug: true
  transform: |
    $.responses["200"].description = "Startup Health check";
- from: openapi-document
  where: '$.paths["/health/ready"].get'
  debug: true
  transform: |
    $.responses["200"].description = "Ready Health check";
- from: openapi-document
  where: '$.paths["/health/live"].get'
  debug: true
  transform: |
    $.responses["200"].description = "Live Health check";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment