pb33f / openapi-changes

The world's sexiest OpenAPI breaking changes detector. Discover what changed between two OpenAPI specs, or a single spec over time. Supports OpenAPI 3.1, 3.0 and Swagger
https://pb33f.io/openapi-changes/
Other
180 stars 16 forks source link

Online version broken after a wrong file input #92

Open LasneF opened 8 months ago

LasneF commented 8 months ago

given 2 files one is correct one not correct

the UI shoot an error (fair)

the fixing the issue and replacing the file via another upload ,

The spinner spin forever and never finish

sample fails (cf $ref , PetPo vs PetPot )

{
    "openapi": "3.1.0",
    "info": {
        "title": "this is the title",
        "description": "this is the description",
        "version": "1.0"
    },
    "servers": [
        {
            "url": "https://api.server.test/v1"
        }
    ],
    "paths": {
        "/test": {
            "get": {
                "operationId": "getTest",
                "responses": {
                    "200": {
                        "description": "testOK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PetPo"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "PetPot": {
                "type": "object",
                "required": [
                    "tagProp"
                ],
                "properties": {
                    "tagProp": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "example": [
                            "Joe",
                            "Bye"
                        ]
                    }
                },
                "example": {
                    "tagProp": [
                        "TODAY",
                        "NOW"
                    ]
                }
            },
            "Yo": {
                "type": "number"
            },
            "OK": {
                "$ref": "#/components/schemas/Yo"
            }
        }
    }
}
daveshanley commented 8 months ago

This is a UI glitch in the demo that needs fixing, there is a state issue after an error and the re-try is not submitting correctly, however the button is being set to a 'pending' state.