Skip to content

Commit

Permalink
Release 🍓 0.260.2
Browse files Browse the repository at this point in the history
  • Loading branch information
botberry committed Feb 13, 2025
1 parent 826287f commit 951e56c
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 66 deletions.
70 changes: 70 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,76 @@
CHANGELOG
=========

0.260.2 - 2025-02-13
--------------------

This release fixes an issue where directives with input types using snake_case
would not be printed in the schema.

For example, the following:

```python
@strawberry.input
class FooInput:
hello: str
hello_world: str


@strawberry.schema_directive(locations=[Location.FIELD_DEFINITION])
class FooDirective:
input: FooInput


@strawberry.type
class Query:
@strawberry.field(
directives=[
FooDirective(input=FooInput(hello="hello", hello_world="hello world")),
]
)
def foo(self, info) -> str: ...
```

Would previously print as:

```graphql
directive @fooDirective(
input: FooInput!
optionalInput: FooInput
) on FIELD_DEFINITION

type Query {
foo: String! @fooDirective(input: { hello: "hello" })
}

input FooInput {
hello: String!
hello_world: String!
}
```

Now it will be correctly printed as:

```graphql
directive @fooDirective(
input: FooInput!
optionalInput: FooInput
) on FIELD_DEFINITION

type Query {
foo: String!
@fooDirective(input: { hello: "hello", helloWorld: "hello world" })
}

input FooInput {
hello: String!
hello_world: String!
}
```

Contributed by [Thiago Bellini Ribeiro](https://github.com/bellini666) via [PR #3780](https://github.com/strawberry-graphql/strawberry/pull/3780/)


0.260.1 - 2025-02-13
--------------------

Expand Down
65 changes: 0 additions & 65 deletions RELEASE.md

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "strawberry-graphql"
packages = [ { include = "strawberry" } ]
version = "0.260.1"
version = "0.260.2"
description = "A library for creating GraphQL APIs"
authors = ["Patrick Arminio <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 951e56c

Please sign in to comment.