question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JohnWeiszcommented, Dec 26, 2016
1reaction
Rookiancommented, Dec 26, 2016

@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:

export class Test {
  id = 1;
}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found