You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""A date time in RFC3339-Extended format.Eg. 2023-03-02T14:12:12.1222Z"""scalarDateTime
However, it renders like this:
In the JSON schema:
"A date time in RFC3339-Extended format.\n\n Eg. 2023-03-02T14:12:12.1222Z"
It seems to be inserting unnecessary spaces after every line break.
Some more debug info
The generated class seems to have indented the string:
<?php/** * THIS FILE WAS GENERATED AND SHOULD NOT BE EDITED MANUALLY. */finalclass DateTimeType extends CustomScalarType implements GeneratedTypeInterface, AliasedInterface
{
publicconstNAME = 'DateTime';
publicfunction __construct(ConfigProcessor$configProcessor, GraphQLServices$services)
{
$config = [
'name' => self::NAME,
'description' => 'A date time in RFC3339-Extended format. Eg. 2023-03-02T14:12:12.1222Z',
'serialize' => fn() => CustomScalarNode::mustOverrideConfig(...\func_get_args()),
'parseValue' => fn() => CustomScalarNode::mustOverrideConfig(...\func_get_args()),
'parseLiteral' => fn() => CustomScalarNode::mustOverrideConfig(...\func_get_args()),
];
Using a double quoted string with escapes instead of actual newlines might be better, or wrapping it in a function that can properly remove the indentation.
The text was updated successfully, but these errors were encountered:
I have a schema like this:
However, it renders like this:
In the JSON schema:
"A date time in RFC3339-Extended format.\n \n Eg. 2023-03-02T14:12:12.1222Z"
It seems to be inserting unnecessary spaces after every line break.
Some more debug info
The generated class seems to have indented the string:
Using a double quoted string with escapes instead of actual newlines might be better, or wrapping it in a function that can properly remove the indentation.
The text was updated successfully, but these errors were encountered: