No valid 'elements' option was specified for xxx
See original GitHub issue@JsonObject({ knownTypes: [EinheitentabellenEintrag, NachschlagetabellenEintrag]})
export class Nachschlagetabelle {
public static get NACHSCHLAGETABELLE_TYPE(): string {
return "Nachschlagetabelle";
}
@JsonMember
tabellenname: string = "";
@JsonMember({ elements: EinheitentabellenEintrag})
test: EinheitentabellenEintrag[];
@JsonMember({ elementType: NachschlagetabellenEintrag })
ntEintraege: NachschlagetabellenEintrag[] = [];
}
Error: No valid ‘elements’ option was specified for ‘Nachschlagetabelle.test’.(…)
Why do I get the error message eventhough I specified the elements option?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Security Guardium S-TAP for IMS - Error messages and codes ... - IBM
Shared memory segment eyecatcher 'value' invalid. AUIZ007S The primary address space failed to respond to a connect request.
Read more >Select all elements with a "data-xxx" attribute without using ...
so you can dynamically select the element having specific data element using template literals document.querySelector(`[data-foo="${i}"]`).
Read more >Error Message Codes
The specified parameter (xxxx) is invalid. Cause: An internal error occurred. Action: Contact Progress DataDirect technical support. 411. The attribute xxx ...
Read more ><input type="tel"> - HTML: HyperText Markup Language | MDN
<input> elements of type tel are used to let the user enter and edit a ... If the specified pattern is not specified...
Read more >Z Data Tools messages - HCL Product Documentation - HCL Software
The Set Offset option was selected, but no value was specified in the Level field. ... An element definition that isn't valid for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Also see https://github.com/Microsoft/TypeScript/issues/13174
@JohnWhiteTB It would be nice, if you could mention this limitation on the documentation. In addition I noticed that you must specifiy the member type. So the following class would not work properly: