Skip to content

Commit 9ec7db2

Browse files
authored
Merge branch 'main' into fix-schemas
2 parents 393bcf6 + 413ed43 commit 9ec7db2

File tree

18 files changed

+3441
-91
lines changed

18 files changed

+3441
-91
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.github/ @notnmeyer
2-
projects/ @niclim @Alexandre-Herve
2+
projects/ @niclim @acunniffe

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "openapi-workspaces",
33
"license": "MIT",
44
"private": true,
5-
"version": "0.53.5",
5+
"version": "0.53.7",
66
"workspaces": [
77
"projects/json-pointer-helpers",
88
"projects/openapi-io",

projects/fastify-capture/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/fastify-capture",
33
"license": "MIT",
44
"packageManager": "[email protected]",
5-
"version": "0.53.5",
5+
"version": "0.53.7",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/json-pointer-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/json-pointer-helpers",
33
"license": "MIT",
44
"packageManager": "[email protected]",
5-
"version": "0.53.5",
5+
"version": "0.53.7",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/openapi-io/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/openapi-io",
33
"license": "MIT",
44
"packageManager": "[email protected]",
5-
"version": "0.53.5",
5+
"version": "0.53.7",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/openapi-utilities/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/openapi-utilities",
33
"license": "MIT",
44
"packageManager": "[email protected]",
5-
"version": "0.53.5",
5+
"version": "0.53.7",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/optic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/optic",
33
"license": "MIT",
44
"packageManager": "[email protected]",
5-
"version": "0.53.5",
5+
"version": "0.53.7",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

projects/rulesets-base/docs/PropertyRule.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# PropertyRule
22

3-
Creates an PropertyRule. An PropertyRule allows you to write assertions around the root open api metadata in your API Specification.
3+
Creates an PropertyRule. An PropertyRule allows you to write assertions about the properties in request and response bodies.
44

55
```javascript
66
new PropertyRule({
7-
name: 'require x-stability',
7+
name: 'require example',
88
rule: (propertyAssertions) => {
9-
propertyAssertions.removed('not remove request', () => {
10-
throw new RuleError({
11-
message: 'cannot remove an request',
12-
});
9+
propertyAssertions.requirement('require examples for all properties ', (property) => {
10+
if (!property.example) {
11+
throw new RuleError({
12+
message: `${property.key} needs an example`,
13+
});
14+
}
1315
});
1416
},
1517
});

projects/rulesets-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@useoptic/rulesets-base",
33
"license": "MIT",
44
"packageManager": "[email protected]",
5-
"version": "0.53.5",
5+
"version": "0.53.7",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"files": [

0 commit comments

Comments
 (0)