📋 feat: Support Custom Content-Types in Action Descriptors (#9364)

This commit is contained in:
Sebastien Bruel 2025-08-30 12:02:40 +09:00 committed by GitHub
parent 49e8443ec5
commit 3a47deac07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 81 additions and 2 deletions

View file

@ -162,6 +162,53 @@ export const whimsicalOpenapiSpec: OpenAPIV3.Document = {
},
};
export const formOpenAPISpec: OpenAPIV3.Document = {
openapi: '3.1.0',
info: {
title: 'Submit Google Form',
description: 'Submit data to a Google Forms',
version: 'v1.0.0',
},
servers: [
{
url: 'https://docs.google.com/forms',
},
],
paths: {
'/formResponse': {
post: {
description: 'Submit a Google Form',
operationId: 'SubmitForm',
requestBody: {
required: true,
content: {
'application/x-www-form-urlencoded': {
schema: {
type: 'object',
properties: {
'entry.123': {
type: 'string',
description: 'Name',
},
'entry.456': {
type: 'string',
description: 'Address',
},
},
},
},
},
},
deprecated: false,
responses: {},
},
},
},
components: {
schemas: {},
},
};
export const scholarAIOpenapiSpec = `
openapi: 3.0.1
info: