Skip to content

Commit

Permalink
debug: added unevaluated property
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <tokesh789@gmail.com>
  • Loading branch information
Tokesh committed Jan 18, 2025
1 parent 0228916 commit 6251924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions json_schemas/test_story.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ definitions:

ChapterRequest:
type: object
unevaluatedProperties: false
properties:
id:
type: string
Expand Down
2 changes: 1 addition & 1 deletion tools/src/_utils/JsonSchemaValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class JsonSchemaValidator {

validate_data(data: any, schema?: Record<any, any>): string | undefined {
if (schema) return this.#validate(this.ajv.compile(schema), data)
console.log("validate_data func", this._validate, data);
console.log("validate_data func", data);
if (this._validate) return this.#validate(this._validate, data)
throw new Error('No schema provided')
}
Expand Down

0 comments on commit 6251924

Please sign in to comment.