-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add : Set NamingStrategy Type (#613)
* Feat : NamingStrategy 인터페이스 작성 * Feat : NamingStrategy 인스턴스 생성 * FEAT: Case 1 ~ 3 except for Enum option * FEAT: NamingStrategy get method * FEAT: get api namingstrategy in startup * FEAT: NamingStrategy in Worker Extensions * FEAT: Enum Case added * Refactor : Get 메소드 수정 * feat: create enum type for naming strategy * feat: add requirements 1~4 for new naming strategy * feat: add NamingStrategy new instance by case * feat: add OpenApiNamingStrategy setting * refactor: rename methods * refactor: add comments to resolve warning messages * FEAT: Override Resolve function(NamingStrategy) * FEAT: Apply FactoryMethod in NamingStrategy * FEAT: Test case for Resolver(Naming Strategy) * CHORE: override to overload(Resolve method) * Refactor : 코드 병합 * Test : OpenApiHttpTriggerContextTests 수정 * Test : UnvalidType Test 추가 * test: add OpenApiConfigurationOptionsTests * test: add DefaultOpenApiConfigurationOptionsTests * refactor: Rename NamingStrategyType to OpenApiNamingStrategy * Refactor : 오류제거 * Add : missing tests * Fix : test typo --------- Co-authored-by: songseungwoon <andrew960811@naver.com> Co-authored-by: hhiyeon <hhyyeon0214@gmail.com> Co-authored-by: SeungWoonSong <susong@student.42seoul.kr>
- Loading branch information
1 parent
3df8ef9
commit 726d2f1
Showing
14 changed files
with
698 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/Microsoft.Azure.WebJobs.Extensions.OpenApi.Core/Enums/OpenApiNamingStrategy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums | ||
{ | ||
/// <summary> | ||
/// This specifies the naming strategy for OpenAPI. | ||
/// </summary> | ||
public enum OpenApiNamingStrategy | ||
{ | ||
/// <summary> | ||
/// Identifies the default naming strategy. | ||
/// </summary> | ||
CamelCase = 0, | ||
|
||
/// <summary> | ||
/// Identifies the PascalCase naming strategy. | ||
/// </summary> | ||
PascalCase = 1, | ||
|
||
/// <summary> | ||
/// Identifies the snake_case naming strategy. | ||
/// </summary> | ||
SnakeCase = 2, | ||
|
||
/// <summary> | ||
/// Identifies the kebab-case naming strategy. | ||
/// </summary> | ||
KebabCase = 3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.