Skip to content

Commit 0cf186d

Browse files
committed
Refreshed
- updated from base - fixed typo in fail test case file name - added new fail test case
1 parent 1fe6a24 commit 0cf186d

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

tests/schema/fail/discriminator-object-unexpected-property.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ components:
77
discriminator-with-unevaluated-properties:
88
type: object
99
discriminator:
10+
propertyName: foo
1011
not-allowed: here

tests/schema/fail/schema-object-externalDocs-unexpected-property copy.yaml renamed to tests/schema/fail/schema-object-externalDocs-unexpected-property.yaml

File renamed without changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
openapi: 3.3.0
2+
info:
3+
title: API
4+
version: 1.0.0
5+
components:
6+
schemas:
7+
Attr:
8+
type: string
9+
xml:
10+
not-allowed: here

tests/schema/minimal-objects.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112

113113
# Schema Object allows additional properties
114114

115-
# Discriminator Object is defined in meta.yaml, test case fail/discriminator-unexpected-property.yaml
115+
# Discriminator Object is defined in meta.yaml, test case fail/discriminator-object-unexpected-property.yaml
116116

117117
# XML Object is defined in meta.yaml
118118

vitest.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
thresholds: process.env.BASE !== "dev" ? {
1111
statements: 100, // JSON Schema keywords
1212
lines: 100,
13-
// functions: 100, // subschemas, for example with `properties` - to be discussed
13+
functions: 100, // subschemas, for example with `properties`
1414
// branches: 56.77, // branch coverage isn't that useful
1515
} : {}
1616
},

0 commit comments

Comments
 (0)