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

Interfaces are not rendered properly when renamed via .rename #1977

Closed
kyri-petrou opened this issue Nov 2, 2023 · 0 comments · Fixed by #1978
Closed

Interfaces are not rendered properly when renamed via .rename #1977

kyri-petrou opened this issue Nov 2, 2023 · 0 comments · Fixed by #1978
Labels
bug Something isn't working server Issue related to caliban server

Comments

@kyri-petrou
Copy link
Collaborator

Repro: https://scastie.scala-lang.org/YCmCwByRQIqhfoNnyySVrQ

Note that it works as expected if the interface is renamed via the @GQLName annotation

Current output:

schema {
  query: Queries
}

union ASTValue = ASTValueBoolean | ASTValueList

interface ASTParameter

interface Parameter

type ASTValueBoolean implements Parameter {
  value: Boolean!
}

type ASTValueList implements Parameter {
  values: [ASTValue!]!
}

type ASTVariable implements Parameter {
  name: String!
}

type Queries {
  param: ASTParameter!
}

Expected:

schema {
  query: Queries
}

union ASTValue = ASTValueBoolean | ASTValueList

interface ASTParameter

type ASTValueBoolean implements ASTParameter {
  value: Boolean!
}

type ASTValueList implements ASTParameter {
  values: [ASTValue!]!
}

type ASTVariable implements ASTParameter {
  name: String!
}

type Queries {
  param: ASTParameter!
}
@ghostdogpr ghostdogpr added bug Something isn't working server Issue related to caliban server core labels Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Issue related to caliban server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants