Skip to content

Conversation

@darrelmiller
Copy link
Member

This PR contains a new OpenApiWorkspace class that is used to hold a set of OpenAPI documents, fragments and artifacts that reference each other.

This PR contains the object model and provides ResolveReference methods that will resolve references from the OpenApiWorkspace.

This is only a partial solution. Additional work needs to be done on the OpenApiWorkspaceLoader to provide a way to automatically read referenced documents and load them in the the workspace when referenced.

darrelmiller and others added 30 commits February 7, 2018 13:41
@darrelmiller darrelmiller marked this pull request as draft December 20, 2020 01:57
@darrelmiller darrelmiller marked this pull request as ready for review March 3, 2021 04:28
@darrelmiller
Copy link
Member Author

The following code will load a stream into an OpenApiDocument and all related documents will be loaded into a common OpenApiWorkspace.

            var reader = new OpenApiStreamReader(new OpenApiReaderSettings()
            {
                ReferenceResolution = ReferenceResolutionSetting.ResolveAllReferences
            });

            var result = await reader.ReadAsync(stream);

@darrelmiller darrelmiller merged commit f02dc2f into vnext Mar 14, 2021
@darrelmiller darrelmiller deleted the dm/openapiworkspace branch March 14, 2021 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants