public override void Parse(OpenApiObject data, IEndpointParser parser) { base.Parse(data, parser); if (data.TryGetObject("element", out var element)) { Element = parser.Parse(element); } }
protected void ParseChildren(OpenApiObject data, IEndpointParser parser) { foreach ((string key, var value) in data) { if (value is OpenApiObject objData) { Children.Add(key, parser.Parse(objData)); } } }
public override void Parse(OpenApiObject data, IEndpointParser parser) { base.Parse(data, parser); Schema = data.GetSchema("schema"); if (data.TryGetObject("element", out var element)) { Element = parser.Parse(element, defaultKind: "element") as ElementEndpoint; } }