Skip to content

Commit a0bf14c

Browse files
authored
Dev (#26)
* Removed `CountLimitAttribute.GetErrorMessage` + Added `ValidationExtensions.CreateValidationResult`
1 parent c7ae81d commit a0bf14c

38 files changed

+1912
-174
lines changed

src/ObjectValidation Docs/docfx.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,19 @@
5555
"globalMetadata": {
5656
"_appTitle": "ObjectValidation",
5757
"_appFooter": "(c) 2023 Andreas Zimmermann, wan24.de",
58+
"_copyrightFooter": "(c) 2023 Andreas Zimmermann, wan24.de",
5859
//"_appLogoPath": "custom/logo.png",
5960
//"_appFaviconPath": "custom/favicon.ico",
60-
"_enableNewTab": true
61+
"_enableSearch": true,
62+
"_disableSideFilter": false,
63+
"_enableNewTab": true,
64+
"_disableContribution": false,
65+
"_disableBreadcrumb": false,
6166
},
6267
"fileMetadataFiles": [],
6368
"template": [
64-
"default"
69+
"default",
70+
"singulinkfx"
6571
],
6672
"postProcessors": [],
6773
"markdownEngineName": "markdig",
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
{{!include(/^styles/.*/)}}
3+
{{!include(/^fonts/.*/)}}
4+
{{!include(favicon.ico)}}
5+
{{!include(logo.svg)}}
6+
{{!include(search-stopwords.json)}}
7+
<!DOCTYPE html>
8+
<!--[if IE]><![endif]-->
9+
<html>
10+
{{>partials/head}}
11+
12+
<body>
13+
<!-- Header required for docfx anchor scroll to work -->
14+
<header id="head"></header>
15+
<div class="top-navbar">
16+
<a class="burger-icon" onclick="toggleMenu()">
17+
<svg name="Hamburger"
18+
style="vertical-align: middle;"
19+
width="34" height="34" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M20 6H4V9H20V6ZM4 10.999H20V13.999H4V10.999ZM4 15.999H20V18.999H4V15.999Z"></path></svg>
20+
</a>
21+
22+
{{>partials/logo}}
23+
</div>
24+
25+
<div class="body-content">
26+
<div id="blackout" class="blackout" onclick="toggleMenu()"></div>
27+
28+
<nav id="sidebar" role="navigation">
29+
<div class="sidebar">
30+
{{>partials/navbar}}
31+
<div class="sidebar-item-separator"></div>
32+
{{^_disableToc}}
33+
{{>partials/toc}}
34+
{{/_disableToc}}
35+
</div>
36+
{{>partials/footer}}
37+
</nav>
38+
39+
<main class="main-panel">
40+
{{#_enableSearch}}
41+
{{>partials/searchResults}}
42+
{{/_enableSearch}}
43+
44+
45+
46+
<div role="main" class="hide-when-search" >
47+
{{^_disableBreadcrumb}}
48+
{{>partials/breadcrumb}}
49+
{{/_disableBreadcrumb}}
50+
51+
{{^_disableContribution}}
52+
<div id="contribution">
53+
{{#docurl}}
54+
<a href="{{docurl}}" class="contribution-link">{{__global.improveThisDoc}}</a>
55+
{{/docurl}}
56+
</div>
57+
{{/_disableContribution}}
58+
59+
<article class="content wrap" id="_content" data-uid="{{uid}}">
60+
{{!body}}
61+
</article>
62+
</div>
63+
64+
{{#_copyrightFooter}}
65+
<div class="copyright-footer">
66+
<span>{{_copyrightFooter}}</span>
67+
</div>
68+
{{/_copyrightFooter}}
69+
</main>
70+
</div>
71+
72+
{{>partials/scripts}}
73+
</body>
74+
</html>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="footer">
2+
{{{_appFooter}}}
3+
{{^_appFooter}}<strong><a href='https://dotnet.github.io/docfx/'>DocFX</a> + <a href='https://www.singulink.com'>Singulink</a> = ♥</strong>{{/_appFooter}}
4+
</div>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6+
<title>{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}</title>
7+
<meta name="viewport" content="width=device-width">
8+
<meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}">
9+
<meta name="generator" content="docfx {{_docfxVersion}}">
10+
{{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
11+
<link rel="shortcut icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
12+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
13+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/night-owl.min.css">
14+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" integrity="sha384-EvBWSlnoFgZlXJvpzS+MAUEjvN7+gcCwH+qh7GRFOGgZO0PuwOFro7qPOJnLfe7l" crossorigin="anonymous">
15+
<link rel="stylesheet" href="{{_rel}}styles/config.css">
16+
<link rel="stylesheet" href="{{_rel}}styles/singulink.css">
17+
<link rel="stylesheet" href="{{_rel}}styles/main.css">
18+
<meta property="docfx:navrel" content="{{_navRel}}">
19+
<meta property="docfx:tocrel" content="{{_tocRel}}">
20+
{{#_noindex}}<meta name="searchOption" content="noindex">{{/_noindex}}
21+
{{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}}
22+
{{#_enableNewTab}}<meta property="docfx:newtab" content="true">{{/_enableNewTab}}
23+
</head>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<ul class="nav level{{level}}">
4+
{{#items}}
5+
{{^dropdown}}
6+
<li>
7+
{{^leaf}}
8+
<span class="expand-stub"></span>
9+
{{/leaf}}
10+
{{#topicHref}}
11+
<a href="{{topicHref}}" class="sidebar-item" name="{{tocHref}}" title="{{name}}">{{name}}</a>
12+
{{/topicHref}}
13+
{{^topicHref}}
14+
<a>{{{name}}}</a>
15+
{{/topicHref}}
16+
17+
{{^leaf}}
18+
{{>partials/li}}
19+
{{/leaf}}
20+
</li>
21+
{{/dropdown}}
22+
{{#dropdown}}
23+
<li class="dropdown">
24+
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">{{name}} <span class="caret"></span></a>
25+
<ul class="dropdown-menu level{{level}}">
26+
{{>partials/dd-li}}
27+
</ul>
28+
</li>
29+
{{/dropdown}}
30+
{{/items}}
31+
</ul>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<a class="brand" href="{{_rel}}index.html">
4+
<img src="{{_rel}}{{{_appLogoPath}}}{{^_appLogoPath}}logo.svg{{/_appLogoPath}}" alt="{{_appName}}" class="logomark">
5+
<span class="brand-title">{{_appName}}</span>
6+
</a>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<h1 id="{{id}}" data-uid="{{uid}}" class="text-break">{{>partials/title}}</h1>
4+
<div class="markdown level0 summary">{{{summary}}}</div>
5+
<div class="markdown level0 conceptual">{{{conceptual}}}</div>
6+
<div class="markdown level0 remarks">{{{remarks}}}</div>
7+
{{#children}}
8+
<h3 id="{{id}}">{{>partials/namespaceSubtitle}}</h3>
9+
{{#children}}
10+
<h5><xref uid="{{uid}}" altProperty="fullName" displayProperty="name"/></h5>
11+
<section>{{{summary}}}</section>
12+
{{/children}}
13+
{{/children}}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<div>
4+
<div class="mobile-hide">
5+
{{>partials/logo}}
6+
</div>
7+
8+
{{#_enableSearch}}
9+
<div class="sidesearch">
10+
<form id="search" role="search" class="search">
11+
<i class="bi bi-search search-icon"></i>
12+
<input type="text" id="search-query" placeholder="{{__global.search}}" autocomplete="off">
13+
</form>
14+
</div>
15+
{{/_enableSearch}}
16+
17+
<div id="navbar">
18+
</div>
19+
</div>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
4+
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
5+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>
6+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
7+
<script type="text/javascript" src="{{_rel}}styles/jquery.twbsPagination.min.js"></script>
8+
<script src="https://cdn.jsdelivr.net/npm/mark.js@8.11.1/dist/jquery.mark.min.js"></script>
9+
<script type="text/javascript" src="{{_rel}}styles/url.min.js"></script>
10+
<script src="https://cdn.jsdelivr.net/npm/anchor-js@5.0.0/anchor.min.js"></script>
11+
<script type="text/javascript" src="{{_rel}}styles/docfx.js"></script>
12+
<script type="text/javascript" src="{{_rel}}styles/main.js"></script>
13+
<script type="text/javascript" src="{{_rel}}styles/singulink.js"></script>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<div id="search-results" style="display: none;">
4+
<h1 class="search-list">{{__global.searchResults}} <span></span></h1>
5+
<div class="sr-items">
6+
<p><i class="bi bi-hourglass-split index-loading"></i></p>
7+
</div>
8+
<ul id="pagination" data-first={{__global.pageFirst}} data-prev={{__global.pagePrev}} data-next={{__global.pageNext}} data-last={{__global.pageLast}}></ul>
9+
</div>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<div id="sidetoggle">
4+
<div id="sidetoc"></div>
5+
</div>
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
/* Theme Configuration Options */
2+
3+
:root
4+
{
5+
/* General */
6+
7+
--base-font-size: 16px;
8+
--smalldevice-base-font-size: 14px; /* Base font size for devices < 1024px */
9+
10+
--main-bg-color: #1f1f23;
11+
--footer-bg-color: rgba(0,0,0,.4);
12+
--separator-color: #42474f;
13+
14+
--table-strip-bg-color: #151515;
15+
--table-header-bg-color: black;
16+
--table-header-color: hsla(0,0%,100%,.8);
17+
--table-header-border-color: #040405;
18+
19+
/* Text */
20+
21+
--appname-color: white;
22+
23+
--h1-color: white;
24+
--h2-color: #f2f2f2;
25+
--h3-color: #e3e3e3;
26+
--h4-color: #ffffff;
27+
--h5-color: #e0e0e0;
28+
29+
--text-color: #e1e1e1;
30+
--link-color: #00b0f4;
31+
--link-hover-color: #2ec4ff;
32+
33+
/* Mobile Topbar */
34+
35+
--topbar-bg-color: #18191c;
36+
37+
/* Button */
38+
39+
--button-color: #747f8d;
40+
41+
/* Sidebar */
42+
43+
--sidebar-width: 400px;
44+
--sidebar-bg-color: #292B30;
45+
46+
--search-color: #bdbdbd;
47+
--search-bg-color: #1b1e21;
48+
--search-searchicon-color: #e3e3e3;
49+
--search-border-color: black;
50+
51+
--sidebar-item-color: white;
52+
--sidebar-active-item-color: #00b0f4;
53+
--sidebar-level1-item-bg-color: #222429;
54+
--sidebar-level1-item-hover-bg-color: #1D1F22;
55+
56+
--toc-filter-color: #bdbdbd;
57+
--toc-filter-bg-color: #1b1e21;
58+
--toc-filter-filtericon-color: #e3e3e3;
59+
--toc-filter-clearicon-color: #e68585;
60+
--toc-filter-border-color: black;
61+
62+
/* Scrollbars */
63+
64+
--scrollbar-bg-color: transparent;
65+
--scrollbar-thumb-bg-color: rgba(0,0,0,.4);
66+
--scrollbar-thumb-border-color: transparent;
67+
68+
/* Alerts and Blocks */
69+
70+
--alert-info-border-color: rgba(114,137,218,.5);
71+
--alert-info-bg-color: rgba(114,137,218,.1);
72+
73+
--alert-warning-border-color: rgba(250,166,26,.5);
74+
--alert-warning-bg-color: rgba(250,166,26,.1);
75+
76+
--alert-danger-border-color: rgba(240,71,71,.5);
77+
--alert-danger-bg-color: rgba(240,71,71,.1);
78+
79+
--alert-tip-border-color: rgba(255,255,255,.5);
80+
--alert-tip-bg-color: rgba(255,255,255,.1);
81+
82+
--blockquote-border-color: rgba(255,255,255,.5);
83+
--blockquote-bg-color: rgba(255,255,255,.1);
84+
85+
--breadcrumb-bg-color: #2f3136;
86+
87+
/* Tabs */
88+
89+
--nav-tabs-border-width: 1px;
90+
--nav-tabs-border-color: #495057;
91+
--nav-tabs-border-radius: .375rem;
92+
--nav-tabs-link-hover-border-color: #303336 #303336 transparent;
93+
--nav-tabs-link-active-color: white;
94+
--nav-tabs-link-active-bg: var(--main-bg-color);
95+
--nav-tabs-link-active-border-color: var(--nav-tabs-border-color) var(--nav-tabs-border-color) var(--main-bg-color);
96+
97+
/* Inline Code */
98+
99+
--ref-bg-color: black;
100+
--ref-color: #89d4f1;
101+
102+
/* Code Blocks */
103+
104+
--code-bg-color: #151515;
105+
--code-color: #d6deeb;
106+
--code-keyword-color: #569cd6;
107+
--code-comment-color: #57a64a;
108+
--code-macro-color: #beb7ff;
109+
--code-string-color: #d69d85;
110+
--code-string-escape-color: #ffd68f;
111+
--code-field-color: #c8c8c8;
112+
--code-function-color: #dcdcaa;
113+
--code-control-color: #d8a0df;
114+
--code-class-color: #4ec9b0;
115+
--code-number-color: #b5cea8;
116+
--code-params-color: #9a9a9a;
117+
--code-breakpoint-color: #8c2f2f;
118+
}
119+
120+
/* Code Block Overrides */
121+
122+
pre, legend {
123+
--scrollbar-thumb-bg-color: #333;
124+
}

0 commit comments

Comments
 (0)