You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplified implementation by not having deeper namespaces. They are now always [your_dll_name_without_extension].Json.[json_filename_csharp_friendly]. Fixes#4
stringmessage=$"Multiple json files found with the same name; JsonByExampleGenerator cannot generate code for this, because it would cause errors. File names: {string.Join(", ",duplicates)}";
3. You can now use the generated classes in your code. Add a using statement for `[your_dll_name_without_extension].Json.[path_to_json_csharp_friendly]`. E.g.:
24
+
3. You can now use the generated classes in your code. Add a using statement for `[your_dll_name_without_extension].Json.[json_filename_csharp_friendly]`. E.g.:
25
25
```csharp
26
26
// For /mock_files/products.json
27
-
usingMyCompany.MyProject.Json.MockFiles.Products;
27
+
usingMyCompany.MyProject.Json.Products;
28
28
```
29
-
Intellisense should help you out when adding a using statement for this. The complicated namespace is needed to ensure separation between different files.
29
+
Intellisense should help you out when adding a using statement for this.
0 commit comments