Skip to content

Leading white spaces in description casuing issues #1489

Closed as not planned
Closed as not planned
@firaskafri

Description

@firaskafri

Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.

  • What is the current behavior?
    Currently Scalar types and Field types pass description without touching it which is causing the issue of inconsistent white spaces in the case of multi-line descriptions when parsed by federation services.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
    a github repo, https://repl.it or similar.

1 - Add a multi-line description argument to any Scalar or Field
2 - Generate schema
3 - Try to build a service schema using graphene-federation
4 - Connect the service to a federation gateway

  • What is the expected behavior?

Leading white spaces in multi-line description must be stripped

  • What is the motivation / use case for changing the behavior?
    Building a federated gateway

  • Please tell us about your environment:

    • Version:
    • Platform:
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions