Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/spectral/ipa/rulesets/IPA-125.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ rules:
This is valid because there are exactly 2 mappings for 2 oneOf references, and all values match.

message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-125-oneOf-must-have-discriminator'
severity: error
severity: warn
given: '$.components.schemas[*]'
then:
function: 'IPA125OneOfMustHaveDiscriminator'
Expand Down Expand Up @@ -84,7 +84,7 @@ rules:
```

message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-125-oneOf-no-base-types'
severity: error
severity: warn
given: '$.components.schemas[*]'
then:
function: 'IPA125OneOfNoBaseTypes'
4 changes: 2 additions & 2 deletions tools/spectral/ipa/rulesets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ Rules are based on [http://go/ipa/IPA-125](http://go/ipa/IPA-125).

#### xgen-IPA-125-oneOf-must-have-discriminator

![error](https://img.shields.io/badge/error-red)
![warn](https://img.shields.io/badge/warning-yellow)
Each oneOf property must include a discriminator property to define the exact type.

##### Implementation details
Expand Down Expand Up @@ -538,7 +538,7 @@ Rule checks for the following conditions:

#### xgen-IPA-125-oneOf-no-base-types

![error](https://img.shields.io/badge/error-red)
![warn](https://img.shields.io/badge/warning-yellow)
API producers should not use oneOf with base types like integer, string, boolean, or number.

##### Implementation details
Expand Down
Loading