Skip to content

@required trait not supported on input and output types of an operation #182

Description

@aashokgithub

Lets assume that we have an operation as shown below

@http(code: 200, method: "POST", uri: "/test_operation")
operation TestOperation {
    input := {
        @required
        test1: String
        @required
        test2: String
    }
    output := {
       @required
       test3: String
    }
}

The TestOperationInput and TestOperationOutput that are generated will generate filed which are Optional[String] even if they are annotated with @required

This happens only with input and output of a operation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions