-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This allows to implement different logic e.g. treat JsonSchema.OneOf to have multiple (non nullable) items instead of zero or one.
- Loading branch information
1 parent
26766ce
commit 7f764af
Showing
2 changed files
with
24 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace NJsonSchema.CodeGeneration.Tests; | ||
|
||
public class ApiSurfaceGuard | ||
{ | ||
private abstract class TypeResolverBaseApiGuard : TypeResolverBase | ||
{ | ||
protected TypeResolverBaseApiGuard(CodeGeneratorSettingsBase settings) : base(settings) | ||
{ | ||
} | ||
|
||
// dummy implementation making sure this method stays overridable | ||
public override string GetOrGenerateTypeName(JsonSchema schema, string typeNameHint) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
// dummy implementation making sure this method stays overridable | ||
public override JsonSchema RemoveNullability(JsonSchema schema) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
} | ||
} |
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