We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
{ "openapi": "3.1.0", "info": { "title": "TEST API", "version": "0.0.1", "description": "" }, "paths": { "/api/sheets/transactions": { "put": { "operationId": "updateTransaction", "summary": "Update", "parameters": [], "responses": { "200": { "description": "OK" } }, "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateTransactionSchema" } } }, "required": true } } } }, "components": { "schemas": { "UpdateTransactionSchema": { "discriminator": { "mapping": { "EX": "#/components/schemas/UpdateTransactionSchemaBase", "IN": "#/components/schemas/UpdateTransactionSchemaBase", "TRANSFER": "#/components/schemas/UpdateTransactionTransferSchemaBase" }, "propertyName": "type" }, "oneOf": [ { "$ref": "#/components/schemas/UpdateTransactionSchemaBase" }, { "$ref": "#/components/schemas/UpdateTransactionTransferSchemaBase" } ], "title": "UpdateTransactionSchema" }, "UpdateTransactionSchemaBase": { "additionalProperties": false, "properties": { "type": { "enum": [ "IN", "EX" ], "title": "Type", "type": "string" } }, "required": [ "type" ], "title": "UpdateTransactionSchemaBase", "type": "object" }, "UpdateTransactionTransferSchemaBase": { "additionalProperties": false, "properties": { "type": { "const": "TRANSFER", "title": "Type" } }, "required": [ "type" ], "title": "UpdateTransactionTransferSchemaBase", "type": "object" } } }, "servers": [] }
/** * Generated by orval v6.29.1 🍺 * Do not edit manually. * TEST API * OpenAPI spec version: 0.0.1 */ import { z as zod } from 'zod' /** * @summary Update */ export const updateTransactionBody = zod.object({ "type": zod.enum(['IN', 'EX', 'EX', 'IN']) }).or(zod.object({ "type": zod.enum(['TRANSFER']) }))
/** * Generated by orval v6.29.1 🍺 * Do not edit manually. * TEST API * OpenAPI spec version: 0.0.1 */ import { z as zod } from 'zod' /** * @summary Update */ export const updateTransactionBody = zod.object({ "type": zod.enum(['EX', 'IN']) }).or(zod.object({ "type": zod.enum(['TRANSFER']) }))
The text was updated successfully, but these errors were encountered:
@melloware to be honest i need some help with this because my pr is just proof of concept that fixes my bug
Sorry, something went wrong.
i added @anymaniax as a reviewer and @soartec-lab
danyadanch
Successfully merging a pull request may close this issue.
What are the steps to reproduce this issue?
What happens?
What were you expecting to happen?
The text was updated successfully, but these errors were encountered: