Skip to content

Commit 3e2adad

Browse files
committed
asyncapi 2.6
0 parents  commit 3e2adad

340 files changed

Lines changed: 28731 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.asyncapi-tool

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"title": "AsyncAPI.Net",
3+
"description": "The AsyncAPI.NET SDK contains a useful object model for AsyncAPI documents in .NET along with common serializers to extract raw OpenAPI JSON and YAML documents from the model.",
4+
"links": {
5+
"websiteUrl": "https://github.com/ByteBardOrg/AsyncAPI.NET/",
6+
"repoUrl": "https://github.com/ByteBardOrg/AsyncAPI.NET"
7+
},
8+
"filters": {
9+
"language": "C#",
10+
"technology": [
11+
".NET",
12+
"ASP.NET"
13+
],
14+
"categories": [
15+
"converters",
16+
"code-first",
17+
"validator"
18+
],
19+
"hasCommercial": false
20+
}
21+
}

.editorconfig

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
[*.cs]
2+
3+
# SA1623: Property summary documentation should match accessors
4+
dotnet_diagnostic.SA1623.severity = suggestion
5+
6+
# SA1633: File should have header
7+
dotnet_diagnostic.SA1633.severity = silent
8+
csharp_indent_labels = one_less_than_current
9+
csharp_using_directive_placement = inside_namespace:silent
10+
csharp_prefer_simple_using_statement = true:suggestion
11+
csharp_prefer_braces = true:silent
12+
csharp_style_namespace_declarations = file_scoped:silent
13+
csharp_style_prefer_method_group_conversion = true:silent
14+
csharp_style_prefer_top_level_statements = true:silent
15+
csharp_style_prefer_primary_constructors = true:suggestion
16+
csharp_prefer_system_threading_lock = true:suggestion
17+
csharp_style_expression_bodied_methods = false:silent
18+
csharp_style_expression_bodied_constructors = false:silent
19+
csharp_style_expression_bodied_operators = false:silent
20+
csharp_style_expression_bodied_properties = true:silent
21+
csharp_style_expression_bodied_indexers = true:silent
22+
csharp_style_expression_bodied_accessors = true:silent
23+
csharp_style_expression_bodied_lambdas = true:silent
24+
csharp_style_expression_bodied_local_functions = false:silent
25+
26+
[*.{cs,vb}]
27+
#### Naming styles ####
28+
29+
# Naming rules
30+
31+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
32+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
33+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
34+
35+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
36+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
37+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
38+
39+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
40+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
41+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
42+
43+
# Symbol specifications
44+
45+
dotnet_naming_symbols.interface.applicable_kinds = interface
46+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
47+
dotnet_naming_symbols.interface.required_modifiers =
48+
49+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
50+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
51+
dotnet_naming_symbols.types.required_modifiers =
52+
53+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
54+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
55+
dotnet_naming_symbols.non_field_members.required_modifiers =
56+
57+
# Naming styles
58+
59+
dotnet_naming_style.begins_with_i.required_prefix = I
60+
dotnet_naming_style.begins_with_i.required_suffix =
61+
dotnet_naming_style.begins_with_i.word_separator =
62+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
63+
64+
dotnet_naming_style.pascal_case.required_prefix =
65+
dotnet_naming_style.pascal_case.required_suffix =
66+
dotnet_naming_style.pascal_case.word_separator =
67+
dotnet_naming_style.pascal_case.capitalization = pascal_case
68+
69+
dotnet_naming_style.pascal_case.required_prefix =
70+
dotnet_naming_style.pascal_case.required_suffix =
71+
dotnet_naming_style.pascal_case.word_separator =
72+
dotnet_naming_style.pascal_case.capitalization = pascal_case
73+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
74+
tab_width = 4
75+
indent_size = 4
76+
end_of_line = crlf
77+
dotnet_style_coalesce_expression = true:suggestion
78+
dotnet_style_null_propagation = true:suggestion
79+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
80+
dotnet_style_prefer_auto_properties = true:silent
81+
dotnet_style_object_initializer = true:suggestion
82+
dotnet_style_collection_initializer = true:suggestion
83+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
84+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
85+
dotnet_style_prefer_conditional_expression_over_return = true:silent
86+
dotnet_style_explicit_tuple_names = true:suggestion
87+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
88+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: '🐞 Bug'
6+
assignees: ''
7+
---
8+
9+
<!--
10+
11+
!!! IMPORTANT !!!
12+
13+
Before creating your issue:
14+
15+
* **Have a question?** You can ask or find answers in the [discussions](https://github.com/ByteBardOrg/AsyncAPI.NET/discussions).
16+
17+
* **Found an editing mistake?** Create a Pull Request with the edited fix. The Github UI allows you to edit files directly.
18+
19+
* **Feature request?** First read [asyncapi/spec/blob/master/CONTRIBUTING.md](https://github.com/ByteBardOrg/AsyncAPI.NET/blob/main/CONTRIBUTING.md) and prefer creating a Pull Request!
20+
21+
-->
22+
23+
### Describe the bug
24+
A clear and concise description of what the bug is.
25+
26+
### To Reproduce
27+
Steps to reproduce the behavior:
28+
1. Create a document with '...'
29+
2. Try to change to '....'
30+
3. Try to validate the document doing '....'
31+
4. See error
32+
33+
### Expected behavior
34+
A clear and concise description of what you expected to happen.
35+
36+
### Sample document
37+
If applicable, add an AsyncAPI document illustrating the problem.
38+
39+
### Screenshots
40+
If applicable, add screenshots to help explain your problem.
41+
42+
### Additional context
43+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Question
3+
about: A question about the spec or processes
4+
title: ""
5+
labels: '❔ Question'
6+
assignees: ''
7+
---
8+
9+
<!--
10+
11+
!!! IMPORTANT !!!
12+
13+
Before creating your issue:
14+
15+
* **Have a question?** You can ask or find answers in the [discussions](https://github.com/ByteBardOrg/AsyncAPI.NET/discussions).
16+
17+
* **Found an editing mistake?** Create a Pull Request with the edited fix. The Github UI allows you to edit files directly.
18+
19+
* **Feature request?** First read [asyncapi/spec/blob/master/CONTRIBUTING.md](https://github.com/ByteBardOrg/AsyncAPI.NET/blob/main/CONTRIBUTING.md) and prefer creating a Pull Request!
20+
21+
-->

.github/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
documentation:
2+
- '**/*.md'
3+
ci/cd:
4+
- .github/**/*
5+
asyncapi.readers:
6+
- src/ByteBard.AsyncAPI.Readers/**/*
7+
asyncapi.bindings:
8+
- src/ByteBard.AsyncAPI.Bindings/**/*
9+
asyncapi.models:
10+
- src/ByteBard.AsyncAPI/**/*
11+
asyncapi.tests:
12+
- test/**/*

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## About the PR
2+
<!-- Description of the PR should go here -->
3+
4+
### Changelog
5+
- Add: Added amazing features!
6+
- Remove: Removed tedious bugs!
7+
8+
### Related Issues
9+
- Closes #<issue-number>

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build & Test
2+
on:
3+
push:
4+
branches: [ main, vnext ]
5+
paths:
6+
- 'src/**'
7+
- 'test/**'
8+
- '!**/*.md'
9+
pull_request:
10+
branches: [ main, vnext ]
11+
paths:
12+
- 'src/**'
13+
- 'test/**'
14+
- '!**/*.md'
15+
workflow_dispatch:
16+
jobs:
17+
build:
18+
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
os: [ windows-latest, macos-latest ]
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Setup .NET
26+
uses: actions/setup-dotnet@v1
27+
with:
28+
dotnet-version: '8.0.x'
29+
include-prerelease: true
30+
- name: Restore dependencies
31+
run: dotnet restore
32+
- name: Build
33+
run: dotnet build --no-restore
34+
- name: Test
35+
run: dotnet test --no-build --verbosity normal

.github/workflows/do_not_merge.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: label check
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, labeled, unlabeled, synchronize, edited, ready_for_review]
6+
7+
jobs:
8+
block:
9+
name: Block if do not merge
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: mheap/github-action-required-labels@v2
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
with:
16+
mode: exactly
17+
count: 0
18+
labels: "do not merge"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: First interaction
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
issues:
7+
types:
8+
- opened
9+
10+
jobs:
11+
first-interaction:
12+
runs-on: ubuntu-latest
13+
name: First interaction
14+
steps:
15+
- uses: actions/first-interaction@v1
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
issue-message: 'Welcome to AsyncAPI.NET. Thank you ${{ github.event.pull_request.user.login }} for reporting your first issue. Please check out our [contributors guide](https://github.com/ByteBardOrg/AsyncAPI.NET/blob/main/CONTRIBUTING.md).'
19+
pr-message: 'Thank you ${{ github.event.pull_request.user.login }} for your first pull request to AsyncAPI.NET repository. Please check out our [contributors guide](https://github.com/ByteBardOrg/AsyncAPI.NET/blob/main/CONTRIBUTING.md).'

.github/workflows/labeler.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
triage:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v4
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)