示例#1
0
        public override void Parse(OpenApiObject data, IEndpointParser parser)
        {
            base.Parse(data, parser);

            RequestSchema  = data.GetSchema("request-schema");
            ResponseSchema = data.GetSchema("response-schema");
        }
        public override void Parse(OpenApiObject data, IEndpointParser parser)
        {
            base.Parse(data, parser);

            Schema    = data.GetSchema("schema");
            Separator = data.GetString("separator");
        }
示例#3
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;
            }
        }
        public override void Parse(OpenApiObject data, IEndpointsParser parser)
        {
            base.Parse(data, parser);

            Schema = data.GetSchema("schema");
        }