Skip to content

Turning Non-null to is_null #1505

Closed
Closed
@ManiMozaffar

Description

@ManiMozaffar

Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
Hey :)
so I was reading docs, and then I remembered something:
simple is better than complex.

Why would we create a new class and object type because we don't want nullable values? isn't accepting a nullable value a property? then maybe we could have used is_null=True/False, and it gives us more control, because now we can have 4 possibility:

  1. is required, but accept null
  2. is not required, but accept null
  3. is required, but null isn't acceptable
  4. is not required, but null isn't acceptable
  • What is the current behavior?
    Using a new class/object, to adopt a behaviour that can be achieved as property

  • 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.

  • What is the expected behavior?
    Having is_null, beside required.

  • What is the motivation / use case for changing the behavior?
    This gives us more flexible, and less complex scalars.

  • 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