Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
title: '[Feature Request] '
labels: ''
assignees: ''
---
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zenstack-monorepo",
"version": "1.0.0-beta.21",
"version": "1.0.0-beta.22",
"description": "",
"scripts": {
"build": "pnpm -r build",
Expand Down
2 changes: 1 addition & 1 deletion packages/language/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/language",
"version": "1.0.0-beta.21",
"version": "1.0.0-beta.22",
"displayName": "ZenStack modeling language compiler",
"description": "ZenStack modeling language compiler",
"homepage": "https://zenstack.dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/openapi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zenstackhq/openapi",
"displayName": "ZenStack Plugin and Runtime for OpenAPI",
"version": "1.0.0-beta.21",
"version": "1.0.0-beta.22",
"description": "ZenStack plugin and runtime supporting OpenAPI",
"main": "index.js",
"repository": {
Expand Down
9 changes: 9 additions & 0 deletions packages/plugins/openapi/src/rest-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,15 @@ export class RESTfulOpenAPIGenerator extends OpenAPIGeneratorBase {
},
title: { type: 'string', description: 'Error title' },
detail: { type: 'string', description: 'Error detail' },
reason: {
type: 'string',
description: 'Detailed error reason',
},
zodErrors: {
type: 'object',
additionalProperties: true,
description: 'Zod validation errors if the error is due to data validation failure',
},
},
},
},
Expand Down
5 changes: 5 additions & 0 deletions packages/plugins/openapi/src/rpc-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,11 @@ export class RPCOpenAPIGenerator extends OpenAPIGeneratorBase {
type: 'string',
description: 'Detailed error reason',
},
zodErrors: {
type: 'object',
additionalProperties: true,
description: 'Zod validation errors if the error is due to data validation failure',
},
},
additionalProperties: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,14 @@ components:
detail:
type: string
description: Error detail
reason:
type: string
description: Detailed error reason
zodErrors:
type: object
additionalProperties: true
description: Zod validation errors if the error is due to data validation
failure
_errorResponse:
type: object
required:
Expand Down
8 changes: 8 additions & 0 deletions packages/plugins/openapi/tests/baseline/rest.baseline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,14 @@ components:
detail:
type: string
description: Error detail
reason:
type: string
description: Detailed error reason
zodErrors:
type: object
additionalProperties: true
description: Zod validation errors if the error is due to data validation
failure
_errorResponse:
type: object
required:
Expand Down
Loading