Closed
Description
I download API as JSON resolved (https://app.swaggerhub.com/apis/AdvancedComputerSoft/e-commerce/1.0.25)
Using generator version 4.3.0 installed via npm I run....
openapi-generator generate -i openapi.json -g typescript-axios -o clientSDK
I get...
There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 13, Warning count: 0
Errors:
-attribute components.schemas.allDeliveryAddresses.items is missing
-attribute components.schemas.allVatRates.items is missing
-attribute components.schemas.allProducts.items is missing
-attribute components.schemas.allCustomers.items is missing
-attribute components.schemas.allStockCategories.items is missing
-attribute components.schemas.allBankAccounts.items is missing
-attribute components.schemas.allCompanies.items is missing
-attribute components.schemas.allLocations.items is missing
-attribute components.schemas.allExchangeRates.items is missing
-attribute components.schemas.allVatTypes.items is missing
-attribute components.schemas.allReceipts.items is missing
-attribute components.schemas.allSalesInvoices.items is missing
-attribute components.schemas.allSalesOrders.items is missing
However the open API is marked as valid on swaggerhub and imports fine into POSTMAN. I'm a newbie so apologies if this is stupid question but why can't I generate an SDK for this valid spec.
If I inspect the file visually I can see local $ref that should resolve fine to the above named attributes.
Many Thanks