You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
paths:
/v1/organizations:
post:
summary: Create an organization.operationId: createOrganizationsecurity:
- BearerAuth: []tags:
- Organizationsparameters:
- name: Management-Set-GUIDin: headerrequired: truedescription: The GUID of the management set that the user is part of.schema:
type: stringformat: uuidrequestBody:
required: truecontent:
application/json:
schema:
$ref: '#/components/schemas/CreateOrganizationRequest'responses:
'201':
description: Organization created.content:
application/json:
schema:
$ref: '#/components/schemas/OrganizationResponse''400':
description: The request is invalid.'401':
description: The client is not authenticated.'403':
description: The client is not authorized to perform this operation.
System information (optional)
MacOS
Chrome 130
NPM 9.5.1
Node 18.16.1
openapi-ts 0.54.2
The text was updated successfully, but these errors were encountered:
Hey @michaelfbradley, can you share a reproducible example in StackBlitz? Or at least provide more information? Everything you've shared indicates that a POST request is happening
Description
I'm experimenting with
openapi-ts
in a new project, and am currently attempting to create a new organization by using the following service (fetch)The above is invoked by the following call.
However, the issue here is that the above call does not result in a
POST
requests to/organisations
but rather aGET
.When console logging the request, everything seems to be in order.
I'm at a loss to understand why the correct POST call isn't happening.
Reproducible example or configuration
https://stackblitz.com/edit/hey-api-client-fetch-example
OpenAPI specification (optional)
Relevant OpenAPI spec for organization creation
System information (optional)
The text was updated successfully, but these errors were encountered: