-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1530 from microsoft/mk/fix-data-and-type-mismatch
Fix data and type mismatch warning for an example object with a date value
- Loading branch information
Showing
3 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...penApi.Readers.Tests/V3Tests/Samples/OpenApiDocument/documentWithDateExampleInSchema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Sample API | ||
description: Lorem Ipsum | ||
version: 1.0.0 | ||
servers: | ||
- url: http://api.example.com/v1 | ||
description: Lorem Ipsum | ||
paths: | ||
/issues: | ||
get: | ||
summary: Returns a list of issues. | ||
description: Lorem Ipsum | ||
responses: | ||
"200": | ||
description: Lorem Ipsum | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
required: | ||
- data | ||
properties: | ||
data: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/issueData" | ||
example: | ||
data: | ||
- issuedAt: "2023-10-12" | ||
components: | ||
schemas: | ||
issueData: | ||
type: object | ||
title: Issue Data | ||
description: Information about the issue. | ||
properties: | ||
issuedAt: | ||
type: string | ||
format: date | ||
description: Lorem Ipsum | ||
example: "2023-10-12" |