forked from loafle/openapi-generator-original
Support language N4JS (#15089)
* n4js initial commit * incorporate feedback from user * add tests * fix media type in case of DELETE method * fix media type * some minor fixes * options fix for booleans * small fixes * generated files by ./bin/utils/ensure-up-to-date * remove String::toLowerCase due to de.thetaphi:forbiddenapis * adjust test expectation * fix test expectations * fix test expectation * add note to section 'Languages/Generators' * remove file according to review
This commit is contained in:
21
samples/client/petstore/n4js/model/ApiResponse.n4jsd
Normal file
21
samples/client/petstore/n4js/model/ApiResponse.n4jsd
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Describes the result of uploading an image resource
|
||||
*/
|
||||
export external public interface ~ApiResponse {
|
||||
public code?: int;
|
||||
public type?: string;
|
||||
public message?: string;
|
||||
}
|
||||
20
samples/client/petstore/n4js/model/Category.n4jsd
Normal file
20
samples/client/petstore/n4js/model/Category.n4jsd
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A category for a pet
|
||||
*/
|
||||
export external public interface ~Category {
|
||||
public id?: int;
|
||||
public name?: string;
|
||||
}
|
||||
28
samples/client/petstore/n4js/model/Order.n4jsd
Normal file
28
samples/client/petstore/n4js/model/Order.n4jsd
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* An order for a pets from the pet store
|
||||
*/
|
||||
export external public interface ~Order {
|
||||
public id?: int;
|
||||
public petId?: int;
|
||||
public quantity?: int;
|
||||
public shipDate?: string;
|
||||
|
||||
/**
|
||||
* Order Status
|
||||
*/
|
||||
public status?: "placed" | "approved" | "delivered";
|
||||
public complete?: boolean;
|
||||
}
|
||||
30
samples/client/petstore/n4js/model/Pet.n4jsd
Normal file
30
samples/client/petstore/n4js/model/Pet.n4jsd
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Category } from 'model/Category';
|
||||
import { Tag } from 'model/Tag';
|
||||
|
||||
/**
|
||||
* A pet for sale in the pet store
|
||||
*/
|
||||
export external public interface ~Pet {
|
||||
public id?: int;
|
||||
public category?: Category;
|
||||
public name: string;
|
||||
public photoUrls: string[];
|
||||
public tags?: Tag[];
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
*/
|
||||
public status?: "available" | "pending" | "sold";
|
||||
}
|
||||
20
samples/client/petstore/n4js/model/Tag.n4jsd
Normal file
20
samples/client/petstore/n4js/model/Tag.n4jsd
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A tag for a pet
|
||||
*/
|
||||
export external public interface ~Tag {
|
||||
public id?: int;
|
||||
public name?: string;
|
||||
}
|
||||
30
samples/client/petstore/n4js/model/User.n4jsd
Normal file
30
samples/client/petstore/n4js/model/User.n4jsd
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A User who is purchasing from the pet store
|
||||
*/
|
||||
export external public interface ~User {
|
||||
public id?: int;
|
||||
public username?: string;
|
||||
public firstName?: string;
|
||||
public lastName?: string;
|
||||
public email?: string;
|
||||
public password?: string;
|
||||
public phone?: string;
|
||||
|
||||
/**
|
||||
* User Status
|
||||
*/
|
||||
public userStatus?: int;
|
||||
}
|
||||
Reference in New Issue
Block a user