Show / Hide Table of Contents

Enum ModelParsingQuirk

Enum ModelParsingQuirk defines quirks that may change the parser's behavior to admit models that are invalid in narrowly defined ways. Use of these quirks is strongly discouraged unless the effect and consequences are well understood.

Namespace: DTDLParser
Assembly: DTDLParser.dll
Syntax
[Flags]
public enum ModelParsingQuirk
Remarks

To specify more than one quirk, use bitwise OR to combine quirk values.

Fields

Name Description
None

No quirk.

TolerateSolecismsInParse

The TolerateSolecismsInParse quirk tells the parser while parsing a submitted model to tolerate specific minor invalidities to support backward compatibility. Specifically, this quirk instructs the parser while parsing a submitted model... ...to permit defining DTDL elements whose identifiers have reserved prefixes, ...to treat a JSON object containing nothing but an @id property as though it were a JSON string whose value is the value of the @id property, and ...to ignore any duplicate names and accept the first one in the list, unless the element has a user-assigned ID.

TolerateSolecismsInResolve

The TolerateSolecismsInResolve quirk tells the parser during DTMI resolution to tolerate specific minor invalidities to support backward compatibility. Specifically, this quirk instructs the parser during DTMI resolution... ...to permit defining DTDL elements whose identifiers have reserved prefixes, ...to treat a JSON object containing nothing but an @id property as though it were a JSON string whose value is the value of the @id property, and ...to ignore any duplicate names and accept the first one in the list, unless the element has a user-assigned ID.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX