Skip to content
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

Support application/x-www-form-urlencoded request body #25

Merged
merged 2 commits into from
Jun 8, 2024

Conversation

hgiasac
Copy link
Collaborator

@hgiasac hgiasac commented Jun 8, 2024

Support content type for the request body
The request body argument is moved to the body field.

{
  "request": {
    "url": "/oauth2/introspect",
    "method": "post",
    "requestBody": {
      "contentType": "application/x-www-form-urlencoded",
      "schema": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "String",
            "nullable": true
          },
          "token": {
            "type": "String"
          }
        }
      }
    }
  },
  "arguments": {
    "body": {
      "description": "Form data of /oauth2/introspect",
      "type": {
        "name": "IntrospectOAuth2TokenBody",
        "type": "named"
      }
    }
  },
  "description": "Introspect OAuth2 Tokens",
  "name": "introspectOAuth2Token",
  "result_type": {
    "name": "OAuth2TokenIntrospection",
    "type": "named"
  }
}

Copy link

github-actions bot commented Jun 8, 2024

Code Coverage

Package Line Rate Health
github.com/hasura/ndc-rest-schema/command 69%
github.com/hasura/ndc-rest-schema/openapi/internal 77%
github.com/hasura/ndc-rest-schema/openapi 59%
github.com/hasura/ndc-rest-schema/schema 57%
github.com/hasura/ndc-rest-schema/utils 53%
Summary 69% (2104 / 3046)

Minimum allowed line rate is 50%

@hgiasac hgiasac merged commit 47b83ad into main Jun 8, 2024
2 checks passed
@hgiasac hgiasac deleted the improve-oas2-urlencoded-body branch June 8, 2024 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant