Skip to content

Commit 54fbdda

Browse files
committed
fix: typos
1 parent 84df56b commit 54fbdda

File tree

5 files changed

+7
-19
lines changed

5 files changed

+7
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ See [usage](./docs/usage.md) for more details.
3535

3636
## AsyncAPI standard
3737

38-
[AsyncAPI at Next](./docs/asyncapi.md)
38+
[AsyncAPI](./docs/asyncapi.md)
3939

4040
## Local development
4141

src/dotnet/Schema.Generator/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ Follow instructions for:
4545

4646
> when running locally against a target - run `dotnet publish` in the target project to ensure all the dependency DLLs are present in the same directory, else assemblyLoader will fail if types are referencing packages from other assemblies.
4747
48-
Actual example against the `domain.Dft.Sorter6.Mapper` repo
48+
Actual example against the `domain.foo` repo
4949

50-
First publish the `domain.Dft.Sorter6.Mapper.Models` project:
50+
First publish the `domain.foo.Models` project:
5151

52-
`dotnet publish /your/git/path/to/domain.Dft.Sorter6.Mapper/src/domain.Dft.Sorter6.Mapper.Models/domain.Dft.Sorter6.Mapper.Models.csproj -c Release`
52+
`dotnet publish /your/git/path/to/domain.foo/src/domain.foo.Models/domain.foo.Models.csproj -c Release`
5353

5454
Once done we can then generate the output.
5555

56-
`schemagenerator -p /your/git/path/to/domain.Dft.Sorter6.Mapper/src/domain.Dft.Sorter6.Mapper.Models/bin/Release/net6.0/publish/domain.Dft.Sorter6.Mapper.Models.dll -f domain.Dft.Sorter6.Mapper.Models.WarehouseEvents.Version1 -d`
56+
`schemagenerator -p /your/git/path/to/domain.foo/src/domain.foo.Models/bin/Release/net6.0/publish/domain.foo.Models.dll -f domain.foo.Models.WarehouseEvents.Version1 -d`
5757

5858
By default the output is generated in the current directory creating a folder `.autogened` which will include both the samples and schemas.
5959

src/dotnet/Schema.Generator/Sample.Generated.DLL.Source/BaseWrapper.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,8 @@ public abstract class BaseWrapper
1010

1111
[JsonPropertyName("creationDate")]
1212
public string CreationDate { get; set; }
13-
14-
[JsonPropertyName("version")]
15-
public string Version => VersionConstants.NextVersion1;
1613
}
1714

18-
public static class VersionConstants
19-
{
20-
public const string DftVersion1 = "v1";
21-
public const string NextVersion1 = "1";
22-
}
15+
2316
}
2417

src/ts/eventcatalog-plugin-doc-generator-azblob/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build:watch": "npm run build -- -w",
1616
"clean:tree": "git clean -idx"
1717
},
18-
"author": "[email protected]",
18+
"author": "[email protected]",
1919
"license": "MIT",
2020
"dependencies": {
2121
"@asyncapi/parser": "3.0.5",

src/ts/eventcatalog-plugin-doc-generator-azblob/src/eventcatalog_plugin-doc-generator-asyncapi/util.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ export interface EventCatalogMsgExamples {
7676
export const extractEventCatalogExamples = (
7777
rawDoc: string
7878
): EventCatalogMsgExamples => {
79-
// ###BEGIN_EVENTCATALOG_EXAMPLES###
80-
// #->eyJuYW1lIjoiUGFja2luZ0FyZWFFdmVudC0wLWV4YW1wbGUiLCJzdW1tYXJ5Ijoie1wiZmlsZVwiOlwic29tZWV2ZW50cG9jby5jc1sxMy0zMV1cIixcInBhdGhcIjpcIi9Vc2Vycy9kdXNhbm5pdHNjaG5laWRlci9naXQvbmV4dC93YXJlaG91c2UtaW50ZWdyYXRpb24vV2hkcy5Ub29scy5Bc3luY0FQSUdlbmVyYXRvci9zcmMvZ28vYXN5bmMtYXBpLWdlbi1kb2MvdGVzdC93aGRzLnNhbXBsZS9zcmMvc29tZWV2ZW50cG9jby5jc1wifSIsInBheWxvYWQiOiJuYW1lc3BhY2UgV2hkcy5QYWNraW5nLlNlcnZpY2VzLlBhY2tBcmVhLkNvbnRyYWN0cy5FdmVudHM7XG5cbnB1YmxpYyBjbGFzcyBQYWNraW5nQXJlYUV2ZW50IDogV2hkc01lc3NhZ2VcdTAwM2NQYWNraW5nQXJlYUV2ZW50UGF5bG9hZFx1MDAzZVxue1xuICAgIHB1YmxpYyBQYWNraW5nQXJlYUV2ZW50KFBhY2tpbmdBcmVhRXZlbnRQYXlsb2FkIHBheWxvYWQpXG4gICAge1xuICAgICAgICBNZXNzYWdlVHlwZU5hbWUgPSBuYW1lb2YoUGFja2luZ0FyZWFFdmVudCk7XG4gICAgICAgIFNvdXJjZVN5c3RlbSA9IFBhY2tBcmVhU2VydmljZUNvbnN0YW50cy5OYW1lO1xuICAgICAgICBHdWlkID0gR3VpZC5OZXdHdWlkKCk7XG4gICAgICAgIENyZWF0aW9uRGF0ZSA9IERhdGVUaW1lLlV0Y05vdztcbiAgICAgICAgTnVtYmVyID0gMTtcbiAgICAgICAgTnVtYmVyT2YgPSAxO1xuICAgICAgICBPd25lciA9IHN0cmluZy5FbXB0eTtcbiAgICAgICAgU3RyZWFtID0gU3RyaW5nLkVtcHR5O1xuICAgICAgICBQYXlsb2FkID0gcGF5bG9hZDtcbiAgICB9XG59In0=
81-
// ###END_EVENTCATALOG_EXAMPLES###
82-
// The output will look like the below
83-
// let output = {"name":"N6_BulkOrderConfiguration_v1-0-example","summary":"{\"file\":\"BulkOrderUpdatedEvent.cs[9-16]\",\"path\":\"/some/path/domain.Dft.Sorter6.Mapper/src/domain.Dft.Sorter6.Mapper.Models/WarehouseEvents/Version1/OrderUpdatedEvents/BulkOrderUpdatedEvent.cs\"}","payload":"namespace domain.Dft.Sorter6.Mapper.Models.WarehouseEvents.Version1.OrderUpdatedEvents\n{\n public class BulkOrderUpdatedEvent : OrderUpdatedEvent\n {\n }\n}"}
8479

8580
let resp = {} as EventCatalogMsgExamples;
8681

0 commit comments

Comments
 (0)