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:
mmews-n4
2023-05-03 09:23:45 +02:00
committed by GitHub
parent 0cbf118757
commit a83470066e
28 changed files with 4086 additions and 1 deletions

View 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;
}

View 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;
}

View 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;
}

View 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";
}

View 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;
}

View 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;
}