storj/private/apigen
Ivan Fraixedes 386a978310 private/apigen: Validate param types
The Go generator only supports certain types as query and path
parameters and it panics on any an unsupported type.

The Document and TypeScript generator don't have any validation for
them. TypeScript generator generates code that compiles, however, it
won't work properly with all the types not supported by the Go
generator.

Because it doesn't make sense that some types may work on the TypeScript
generator, while the Go generator doesn't, doing the validation in the
Param constructor is better because it reports the issue without having
to run the Go generator and it gives a more understanding panic message.

TypeScript generator generates code that works properly with all the
types supported by the Go generator, hence, there isn't any change int
he TypeScript generator in this commit.

Change-Id: I03085283942a98341726a1560f511a46540df9f5
2023-10-10 12:37:20 +00:00
..
example private/apigen: Avoid clashes of types names 2023-10-05 07:30:09 +00:00
common_test.go private/apigen: Avoid clashes of types names 2023-10-05 07:30:09 +00:00
common.go private/apigen: Avoid clashes of types names 2023-10-05 07:30:09 +00:00
docgen.go private/apigen: Make API base path configurable 2023-08-28 14:35:01 +00:00
endpoint_test.go private/apigen: Don't allow certain types for Request/Response 2023-10-04 13:46:54 +02:00
endpoint.go private/apigen: Validate param types 2023-10-10 12:37:20 +00:00
gogen_test.go private/apigen: Fix code generation for slices & arrays 2023-10-02 17:05:35 +02:00
gogen.go private/apigen: Don't force casing for API group name/prefix 2023-10-05 06:48:50 +00:00
tsgen.go private/apigen: Avoid clashes of types names 2023-10-05 07:30:09 +00:00
tstypes_test.go private/apigen: Fix code generation for slices & arrays 2023-10-02 17:05:35 +02:00
tstypes.go private/apigen: Fix TS generator to apply naming conventions 2023-10-04 13:47:33 +02:00