Skip to content

Commit 10146b9

Browse files
authored
merge dev to main (#699)
2 parents 225c689 + cc6f286 commit 10146b9

File tree

89 files changed

+4646
-3190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+4646
-3190
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
4+
title: '[Feature Request] '
55
labels: ''
66
assignees: ''
77
---

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zenstack-monorepo",
3-
"version": "1.0.0-beta.21",
3+
"version": "1.0.0-beta.22",
44
"description": "",
55
"scripts": {
66
"build": "pnpm -r build",

packages/language/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/language",
3-
"version": "1.0.0-beta.21",
3+
"version": "1.0.0-beta.22",
44
"displayName": "ZenStack modeling language compiler",
55
"description": "ZenStack modeling language compiler",
66
"homepage": "https://zenstack.dev",

packages/plugins/openapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/openapi",
33
"displayName": "ZenStack Plugin and Runtime for OpenAPI",
4-
"version": "1.0.0-beta.21",
4+
"version": "1.0.0-beta.22",
55
"description": "ZenStack plugin and runtime supporting OpenAPI",
66
"main": "index.js",
77
"repository": {

packages/plugins/openapi/src/rest-generator.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,15 @@ export class RESTfulOpenAPIGenerator extends OpenAPIGeneratorBase {
596596
},
597597
title: { type: 'string', description: 'Error title' },
598598
detail: { type: 'string', description: 'Error detail' },
599+
reason: {
600+
type: 'string',
601+
description: 'Detailed error reason',
602+
},
603+
zodErrors: {
604+
type: 'object',
605+
additionalProperties: true,
606+
description: 'Zod validation errors if the error is due to data validation failure',
607+
},
599608
},
600609
},
601610
},

packages/plugins/openapi/src/rpc-generator.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,11 @@ export class RPCOpenAPIGenerator extends OpenAPIGeneratorBase {
661661
type: 'string',
662662
description: 'Detailed error reason',
663663
},
664+
zodErrors: {
665+
type: 'object',
666+
additionalProperties: true,
667+
description: 'Zod validation errors if the error is due to data validation failure',
668+
},
664669
},
665670
additionalProperties: true,
666671
},

packages/plugins/openapi/tests/baseline/rest-type-coverage.baseline.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,14 @@ components:
564564
detail:
565565
type: string
566566
description: Error detail
567+
reason:
568+
type: string
569+
description: Detailed error reason
570+
zodErrors:
571+
type: object
572+
additionalProperties: true
573+
description: Zod validation errors if the error is due to data validation
574+
failure
567575
_errorResponse:
568576
type: object
569577
required:

packages/plugins/openapi/tests/baseline/rest.baseline.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,14 @@ components:
13951395
detail:
13961396
type: string
13971397
description: Error detail
1398+
reason:
1399+
type: string
1400+
description: Detailed error reason
1401+
zodErrors:
1402+
type: object
1403+
additionalProperties: true
1404+
description: Zod validation errors if the error is due to data validation
1405+
failure
13981406
_errorResponse:
13991407
type: object
14001408
required:

0 commit comments

Comments
 (0)