Error in generator prop_types: The provided union type ([item_state_failed_cause]) refers to an invalid type. An union type may only refer to an enum, model, or primitive type. TypeError: The provided union type ([item_state_failed_cause]) refers to an invalid type. An union type may only refer to an enum, model, or primitive type. at /opt/apibuilder/dist/generators/prop_types/builders.js:111:19 at Array.map (<anonymous>) at buildUnionPropTypeExpression (/opt/apibuilder/dist/generators/prop_types/builders.js:92:239) at buildPropTypeExpression (/opt/apibuilder/dist/generators/prop_types/builders.js:157:12) at buildPropTypeStatement (/opt/apibuilder/dist/generators/prop_types/builders.js:160:241) at /opt/apibuilder/dist/generators/prop_types/builders.js:181:24 at Array.map (<anonymous>) at buildFile (/opt/apibuilder/dist/generators/prop_types/builders.js:181:10) at generatePropTypes (/opt/apibuilder/dist/generators/prop_types/index.js:17:42) at /opt/apibuilder/dist/generators/prop_types/index.js:53:13

playground-api 0.0.3-dev

Sample API to play with Apibuilder

Resources

healthcheck

Operations

Method and Path Description
GET /_internal_/healthcheck
POST /_internal_/healthcheck/test_form_params_json
GET /_internal_/healthcheck/:id

Headers

No headers

Imports

No imports

Enums

item_state_failed_cause

Name Value Description
ErrorCause1 ErrorCause1
ErrorCause2 ErrorCause2
ErrorCause3 ErrorCause3

item_state_progress

Name Value Description
Init Init
Pending Pending
Completed Completed

Interfaces

No interfaces

Models

error

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
code integer Yes -

message string Yes -

Maximum: 12

message_code string Yes -

Minimum: 2
Maximum: 2

message_lengthy string Yes -

Minimum: 30

details string No -

healthcheck

Example Json: Minimal | Full

Interfaces: None

Field Type Required? Default Description
status string Yes -

Minimum: 3
Example: healthy

created_at date-time-iso8601 Yes -

Example: 2014-04-29T11:56:52Z

Unions

item_state

Interfaces: None

  • Type discriminator: type
Type Discriminator Value Example Json Description
item_state_progress item_state_progress Minimal | Full

[item_state_failed_cause] item_state_failed_cause Minimal | Full

Annotations

No annotations