ParsingContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Parsing Context holds temporary state needed whilst parsing an OpenAPI Document
public class ParsingContext
type ParsingContext = class
Public Class ParsingContext
- Inheritance
-
ParsingContext
Constructors
| Name | Description |
|---|---|
| ParsingContext(OpenApiDiagnostic) |
Create Parsing Context |
Properties
| Name | Description |
|---|---|
| BaseUrl |
The base url for the document |
| DefaultContentType |
Default content type for a response object |
| Diagnostic |
Diagnostic object that returns metadata about the parsing process. |
| ExtensionParsers |
Extension parsers |
Methods
| Name | Description |
|---|---|
| EndObject() |
End the current object. |
| GetFromTempStorage<T>(String, Object) |
Gets the value from the temporary storage matching the given key. |
| GetLocation() |
Get the current location as string representing JSON pointer. |
| Parse(JsonNode, Uri) |
Initiates the parsing process. Not thread safe and should only be called once on a parsing context |
| ParseFragment<T>(JsonNode, OpenApiSpecVersion, OpenApiDocument) |
Initiates the parsing process of a fragment. Not thread safe and should only be called once on a parsing context |
| SetTempStorage(String, Object, Object) |
Sets the temporary storage for this key and value. |
| StartObject(String) |
Starts an object with the given object name. |