You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Problem occurred using the online version of the swagger editor to generate C# model classes from swagger definitions.
The full swagger definition can be found here. The following snippet shows the definition relevant to the bug.
SaleProductOfferResponseV1:
allOf:
- type: objectproperties:
id:
type: stringproductSet:
type: arrayitems:
allOf:
- $ref: '#/components/schemas/ProductSetElementQuantity'
- type: objectproperties:
product:
allOf:
- $ref: '#/components/schemas/ProductOfferResponse'
- type: objectproperties:
parameters:
type: arrayitems:
$ref: '#/components/schemas/ParameterProductOfferResponse'description: Product parameters in the offer.category:
$ref: '#/components/schemas/OfferCategory'attachments:
$ref: '#/components/schemas/ProductOfferAttachment'fundraisingCampaign:
$ref: '#/components/schemas/ProductOfferFundraisingCampaignResponse'additionalServices:
$ref: '#/components/schemas/ProductOfferAdditionalServicesResponse'delivery:
$ref: '#/components/schemas/DeliveryProductOfferResponse'publication:
$ref: '#/components/schemas/SaleProductOfferPublicationResponse'additionalMarketplaces:
$ref: '#/components/schemas/AdditionalMarketplacesResponse'b2b:
$ref: '#/components/schemas/B2b'compatibilityList:
$ref: '#/components/schemas/CompatibilityListProductOfferResponse'language:
type: stringdescription: Declared base language of the offer.format: BCP-47 language codeexample: 'pl-PL'validation:
$ref: '#/components/schemas/Validation'afterSalesServices:
$ref: '#/components/schemas/AfterSalesServices'discounts:
$ref: '#/components/schemas/DiscountsProductOfferResponse'stock:
$ref: '#/components/schemas/Stock'parameters:
type: arrayitems:
$ref: '#/components/schemas/ParameterProductOfferResponse'description: List of offer parameters.contact:
allOf:
- $ref: '#/components/schemas/Contact'description: >- Identifier of contact data for sales format ADVERTISEMENT (classified ad); retrieve it via GET /sale/offer-contacts.createdAt:
type: stringformat: date-timedescription: >- Creation date: Format (ISO 8601) - yyyy-MM-dd'T'HH:mm:ss.SSSZ. Cannot be modified.updatedAt:
type: stringformat: date-timedescription: >- Last update date: Format (ISO 8601) - yyyy-MM-dd'T'HH:mm:ss.SSSZ. Cannot be modified.
- $ref: '#/components/schemas/SaleProductOffer'
Swagger-Editor configuration options:
The code was generated by hitting the button in the screenshot. No config options were used.
Describe the bug you're encountering
Not all of the properties specified in the 'allOf' of the model 'SaleProductOfferResponseV1' appear in the generated model.
The screenshot below shows the 'ToString' Method of the generated model, which contains all of its properties. It should also have properties for i.e. 'category' and 'additionalServices'.
Q&A (please complete the following information)
Content & configuration
This Problem occurred using the online version of the swagger editor to generate C# model classes from swagger definitions.
The full swagger definition can be found here. The following snippet shows the definition relevant to the bug.
Swagger-Editor configuration options:
The code was generated by hitting the button in the screenshot. No config options were used.
Describe the bug you're encountering
Not all of the properties specified in the 'allOf' of the model 'SaleProductOfferResponseV1' appear in the generated model.
The screenshot below shows the 'ToString' Method of the generated model, which contains all of its properties. It should also have properties for i.e. 'category' and 'additionalServices'.
To reproduce...
Steps to reproduce the behavior:
Expected behavior
All properties specified by 'allOf' appear in the generated model.
Screenshots
The text was updated successfully, but these errors were encountered: