Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md updated with latest ModelGeneratorOptions and Prerequisites. #18

Merged
merged 6 commits into from
Oct 20, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,30 @@ This Digital Twin Definition Language (DTDL) Model Generator parses your DTDL js
- *Namespace*: The namespace that will be injected into the generated model classes.
- *JsonModelsDirectory*: The directory that contains the DTDL json files that we'll be parsing.
- *OutputDirectory*: The directory that the generated model classes will be placed in.
- *IncludeTemplateProject*: Whether or not to include the template project in the output directory.
- *CopyrightHeader*: The header comment that contains copyright information.

## Prerequisites
The following are some Prerequisites/assumptions to be considered:

### For Developers
- .Net 6 must be installed, while building the model generator locally. Backward compatibility is not supported.
- The system should have Git installed as the model generator uses MinVer package which requires Git.

### For Users
- The following classes have been copied at the location where model generator assembly is being executed:
- Extensions.cs
- ModelHelper.cs
- Relationship.cs
- RelationshipCollection.cs
- RelationshipEqualityComparer.cs
- SourceValueAttribute.cs
- TwinEqualityComparer.cs
- The ModelGeneratorOptions property "CopyrightHeader" should have "// " prefix.

## Limitations
- The model generator do not support Telemetry fields and Component.
ms-mikeb marked this conversation as resolved.
Show resolved Hide resolved
- The model generator do not support Duration and Array schema types for property and telemetry attributes.
- It also does not support Semantic type with Telemetry fields.

## Usage

Expand Down