Commit 6fbcebc
feat: adds support for open API 3.1
* Replace OpenApiReference with a proxy reference equivalent
* Upgrade OpenApi lib to v2
* Replace type with the corresponding JsonSchemaType enum value
* Use OpenApiAny() for extensions and JsonNodes for examples
* cleanup usings
* chore: updates to the latest preview
* fix: wrong type being emitted for singles
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: use number instead of integer
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* draft: passes reference to the document
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: typo fix
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: typo fix
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: refactor reduces allocs
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: typo fix
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* feat: draft migrates all path item handler to accept document for lookup
* feat: lookup document is being passed to all handlers
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: adds defensive programming
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* feat; passes document to the remaining parameter references methods
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: adds missing document references to all unit tests
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: wrong type-format pair
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: additional format fixes
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: passes remaining document references where required
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: registers the component schemas for further lookup
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: NRT on properties
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: NRT on properties
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: further NRT issues
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor json comparison fixes
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore; first batch of change line breaks removal
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: additional batch of json deep equals conversion
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: another batch of json node deep equals
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: NRT on title lookup
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: property lookup for unit test
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: tag generation with extensions
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: format updates
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: code linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: copy of extensions for schemas
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: tag references unit tests
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: type/format mismatch in test data
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting use switch expressions
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: regroups example generation logic
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: regroups numeric types
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: updates basic example oAS v3
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: multiple updates to test file
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: additional test file fixes
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: missing example type
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: missing query parameters for $count operations
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: updates trip service test file
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: adds missing custom parameters for count subsegments
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor adjustments to basic v2 json sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor ordering changes in sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor adjustments to basic v2 yaml sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor fixes for basic v3 yaml sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor fixes to multiple schema v3 yaml sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor fixes to trip service v3 yaml sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: removes obsolete member
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: missing host document for request body references
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor updates to multi schema v2 json sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor changes to multi schema v2 yaml sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor fixes in trip service v2 json sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: minor fixes for trip service v2 yaml sample
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* ci: adds a validation workflow for all descriptions
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* ci: fix removes extension trimming
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: refactors integration tests
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: wrong test name
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: duplicate operation ids on media and cast segments
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: adds OAS 3.1 integration tests
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: updates to latest components registrations
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: updates for async API surface changes
* chore: updates 3.1 integration test documents with latest fixes
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: bumps to latest oai.net preview
* fix: missing references to document
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: visibility of methods
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: defaults to oas 3.1
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: code linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: use pattern matching for safer casting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: missing type for openapi v2 query parameters
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: missing parameter information
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: switches parameters components model to add
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: normalizes request bodies adding pattern
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: aligns to add pattern for example, components, security schemes, paths
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: updates v2 definitions for missing produces/consumes
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: draft porting to newer proxy implementation design
* chore: removes the style from integration test documents
* fix: odata query parameter references
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: removes style as it's the default value
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: more style form cleanup
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: missing security scheme for reference
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: adds missing security scheme definitions
* fix: nullable information
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* ci: fix type test definition
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix flaky behaviour with error responses
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* fix: removal of nullable property
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: updates oai.net reference
* fix: adds missing type v2 test documents
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* Bump oai.net version
* chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
* chore: linting
* fix: enum example values
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
---------
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>1 parent efaf60a commit 6fbcebc
File tree
177 files changed
+86954
-11146
lines changed- .github/workflows
- docs/oas3_0_0
- src
- Microsoft.OpenApi.OData.Reader
- Common
- Edm
- Generator
- OData
- Operation
- PathItem
- OoasGui
- OoasUtil
- test/Microsoft.OpenAPI.OData.Reader.Tests
- Common
- Generator
- Operation
- PathItem
- Resources
- tool/UpdateDocs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
177 files changed
+86954
-11146
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments