Skip to content

Commit 6616d06

Browse files
committed
make object properties optional
1 parent 557fb01 commit 6616d06

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@omer-x/openapi-types",
3-
"version": "0.1.3",
3+
"version": "0.2.0",
44
"description": "TypeScript types for the OpenAPI Specification",
55
"keywords": [
66
"swagger",

src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type ObjectSchema = {
3232
/**
3333
* An object is a collection of property/value pairs. The properties keyword is used to define the object properties – you need to list the property names and specify a schema for each property.
3434
*/
35-
properties: Record<string, SchemaObject>,
35+
properties?: Record<string, SchemaObject>,
3636
/**
3737
* By default, all object properties are optional. You can specify the required properties in the required list
3838
*/

0 commit comments

Comments
 (0)