Skip to content

Commit

Permalink
Merge pull request #151 from TimoGlastra/feat/support-const-boolean
Browse files Browse the repository at this point in the history
fix: support const boolean
  • Loading branch information
nklomp authored Apr 24, 2024
2 parents 3432a23 + ddd73ce commit 7455153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/validation/core/presentationDefinitionSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class PresentationDefinitionSchema {
type: ['number', 'string'],
},
const: {
type: ['number', 'string'],
type: ['number', 'string', 'boolean'],
},
enum: {
type: 'array',
Expand Down
2 changes: 1 addition & 1 deletion test/validation/core/ajvSchema.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('testing schemas with ajv', () => {
exclusiveMinimum: { type: ['number', 'string'] },
exclusiveMaximum: { type: ['number', 'string'] },
maximum: { type: ['number', 'string'] },
const: { type: ['number', 'string'] },
const: { type: ['number', 'string', 'boolean'] },
enum: {
type: 'array',
items: { type: ['number', 'string'] },
Expand Down

0 comments on commit 7455153

Please sign in to comment.