Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI3 Converted produce invalid typespec for empty schema #4923

Closed
timotheeguerin opened this issue Oct 30, 2024 · 1 comment · Fixed by #4934
Closed

OpenAPI3 Converted produce invalid typespec for empty schema #4923

timotheeguerin opened this issue Oct 30, 2024 · 1 comment · Fixed by #4934
Labels
bug Something isn't working openapi3:converter Issues for @typespec/openapi3 openapi to typespec converter

Comments

@timotheeguerin
Copy link
Member

openapi: 3.0.0
info:
  title: (title)
  version: 0.0.0
tags: []
paths: {}
components: 
  schemas:
    Foo: {}

produce invalid typespec with scalar extends unknown

Playground Link

@timotheeguerin timotheeguerin added openapi3:converter Issues for @typespec/openapi3 openapi to typespec converter bug Something isn't working labels Oct 30, 2024
@JamesChen-us
Copy link
Contributor

Hey Timothee, I've started working on this ticket and identified a fix to prevent this issue. Is there anything else I should consider when implementing this fix, or any additional details that might be helpful?

github-merge-queue bot pushed a commit that referenced this issue Nov 1, 2024
fix #4923

---------

Co-authored-by: Christopher Radek <[email protected]>
swatkatz pushed a commit to swatkatz/typespec that referenced this issue Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working openapi3:converter Issues for @typespec/openapi3 openapi to typespec converter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants