Skip to content

Conversation

@grelland
Copy link

Was stumped by this when attempting to include a local CRD file named httproutes.gateway.networking.k8s.io.json - which resulted in the following error:

ValueError: unknown url type: 'httproutes.gateway.networking.k8s.io.json'

Assuming that all startsWith("http") was intended to do is discerning local from remote resource references.

Was stumped by this when attempting to include a local CRD file named `httproutes.gateway.networking.k8s.io.json` - which resulted in the following error:

```
ValueError: unknown url type: 'httproutes.gateway.networking.k8s.io.json'
```

Assuming that all`startsWith("http")` was intended to do is discerning local from remote resource references.
@grelland grelland changed the title Improve condition for checking if CRD file is a URL openapi2jsonschema: Improve condition for checking if CRD file is a URL Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant