Skip to content

Commit

Permalink
chore(repo): update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazha Omanashvili committed Jun 7, 2024
1 parent 271d950 commit 5bee343
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/reference/openapi-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,37 @@ TheBadModel:
- 8
```

### array-items

Schemas with `type: array`, require a sibling `items` field.

**Recommended:** Yes

**Good Example**

```yaml
TheGoodModel:
type: object
properties:
favoriteColorSets:
type: array
items:
type: array
items: {}
```

**Bad Example**

```yaml
TheBadModel:
type: object
properties:
favoriteColorSets:
type: array
items:
type: array
```

## OpenAPI v2.0-only

These rules will only apply to OpenAPI v2.0 documents.
Expand Down

0 comments on commit 5bee343

Please sign in to comment.