commercetools / commercetools/rmf-codegen

Missing Property from Referenced Type

Aperta
#191 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Kotlin
Stelle
16
Fork
7
Merge medio
1g 3h
PR unite (30g)
3

Descrizione

Originally reported here - https://github.com/commercetools/commercetools-docs/issues/223

We have the same problem in our test RAML where `key` property is missing in the generated subtype.

KeyReference is defined here:

https://github.com/commercetools/commercetools-docs-kit/blob/6f09f5be28d3a0fe6479b1394c0497a29bc383ef/websites/api-docs-smoke-test/source-raml/test/types/references.raml#L71-L78

ExampleTargetTypeKeyReference is the subtype:

https://github.com/commercetools/commercetools-docs-kit/blob/6f09f5be28d3a0fe6479b1394c0497a29bc383ef/websites/api-docs-smoke-test/source-raml/test/types/references.raml#L89-L93

This is the generated RAML for ExampleTargetTypeKeyReference:

https://github.com/commercetools/commercetools-docs-kit/blob/master/websites/api-docs-smoke-test/src/api-specs/test/types/ExampleTargetTypeKeyReference.raml

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Compare KeyReference and ExampleTargetTypeKeyReference in websites/api-docs-smoke-test/source-raml/test/types/references.raml with the generated websites/api-docs-smoke-test/src/api-specs/test/types/ExampleTargetTypeKeyReference.raml. Start by reproducing the generation from the referenced test RAML, then verify that the generated subtype includes the inherited key property.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
kotlin
Ambito
tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.