Skip to content

Commit 2a9deb6

Browse files
authored
feat: allow deprecated property on schema-linter (#31)
1 parent 8600bb6 commit 2a9deb6

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

format-schemas/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ const PROPERTIES = [
111111
"instanceof",
112112

113113
"tsType",
114+
115+
"deprecated",
114116
];
115117

116118
const processJson = processSchema.bind(null, {

schemas-lint/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ for (const filename of schemas) {
5050
"tsType",
5151
"not",
5252
"link",
53+
"deprecated",
5354
];
5455

5556
const isReference = (schema) => {

0 commit comments

Comments
 (0)