public override void Parse(OpenApiObject data, IEndpointParser parser)
        {
            base.Parse(data, parser);

            if (data.TryGetObject("element", out var element))
            {
                Element = parser.Parse(element);
            }
        }
Beispiel #2
0
        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;
            }
        }