forked from VirtoCommerce/vc-storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OpenAPI schema, mark unused API as obsolete (VirtoCommerce#653)
* Fix OpenAPI schema, mark unused API as obsolete * Fix code smell --------- Co-authored-by: Oleg Zhuk <[email protected]>
- Loading branch information
1 parent
29c42f3
commit f88832e
Showing
8 changed files
with
73 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace VirtoCommerce.Storefront.Model; | ||
|
||
public class SlugInfoRequest | ||
{ | ||
public string CultureName { get; set; } | ||
|
||
[Required] | ||
public string Slug { get; set; } | ||
} |
16 changes: 11 additions & 5 deletions
16
VirtoCommerce.Storefront.Model/StaticContent/ContentInThemeSearchCriteria.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 |
---|---|---|
@@ -1,14 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace VirtoCommerce.Storefront.Model.StaticContent | ||
{ | ||
public class ContentInThemeSearchCriteria | ||
{ | ||
public string Permalink { get; set; } | ||
public string Template { get; set; } | ||
|
||
[Obsolete("Use TemplateName instead")] | ||
public string Template | ||
{ | ||
get => TemplateName; | ||
set => TemplateName = value; | ||
} | ||
|
||
[Required] | ||
public string TemplateName { get; set; } | ||
} | ||
} |
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