Skip to content

Commit 41e9db8

Browse files
committed
update docs
1 parent 0f38d64 commit 41e9db8

File tree

4 files changed

+12
-37
lines changed

4 files changed

+12
-37
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,5 @@
1111

1212
# Coding Guidelines
1313

14-
- Projects use StyleCop and .editorconfig to produce style warnings. Please fix all warnings in any code you submit.
14+
- Projects use .editorconfig to produce style warnings. Please fix all warnings in any code you submit.
1515
- Write unit tests for any code written.
16-
17-
# Special Thanks
18-
19-
As thanks for all contributions, your username will be posted to the front page of the project with a short description of how you helped.

README.md

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
[![Schema.NET NuGet Package](https://img.shields.io/nuget/v/Schema.NET.svg)](https://www.nuget.org/packages/Schema.NET) [![Schema.NET Azure Artifacts Package](https://feeds.dev.azure.com/schema-net/_apis/public/Packaging/Feeds/64e69c35-cb00-46e4-9cba-6d8faf1f41d6/Packages/fa72270b-6c54-4403-9307-aa826e43530e/Badge)](https://dev.azure.com/schema-net/Schema.NET/_packaging?_a=package&feed=64e69c35-cb00-46e4-9cba-6d8faf1f41d6&package=fa72270b-6c54-4403-9307-aa826e43530e&preferRelease=true) [![Schema.NET NuGet Package Downloads](https://img.shields.io/nuget/dt/Schema.NET)](https://www.nuget.org/packages/Schema.NET) [![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/RehanSaeedUK) [![Twitter Follow](https://img.shields.io/twitter/follow/rehansaeeduk.svg?style=social&label=Follow)](https://twitter.com/RehanSaeedUK)
1+
[![Schema.NET NuGet Package](https://img.shields.io/nuget/v/Schema.NET.svg)](https://www.nuget.org/packages/Schema.NET)
2+
3+
[//]: # ([![Schema.NET NuGet Package Downloads](https://img.shields.io/nuget/dt/Schema.NET)](https://www.nuget.org/packages/Schema.NET))
24

35
Schema.org objects turned into strongly typed C# POCO classes for use in .NET. All classes can be serialized into JSON/JSON-LD and XML, typically used to represent structured data in the `head` section of `html` page.
46

@@ -148,31 +150,12 @@ For more examples and actual running code samples, take a look at the unit tests
148150

149151
There are many pending types on [schema.org](https://schema.org) which are not yet fully formed and ready for production. If you need to use these, you can install the [Schema.NET.Pending](https://www.nuget.org/packages/Schema.NET.Pending) NuGet package instead of [Schema.NET](https://www.nuget.org/packages/Schema.NET). This package contains all released schema types as well as all pending types.
150152

151-
[![Schema.NET.Pending NuGet Package](https://img.shields.io/nuget/v/Schema.NET.Pending.svg)](https://www.nuget.org/packages/Schema.NET.Pending) [![Schema.NET.Pending Azure Artifacts Package](https://feeds.dev.azure.com/schema-net/_apis/public/Packaging/Feeds/64e69c35-cb00-46e4-9cba-6d8faf1f41d6/Packages/3f7ed124-c136-4be6-8972-3a6b612b932e/Badge)](https://dev.azure.com/schema-net/Schema.NET/_packaging?_a=package&feed=64e69c35-cb00-46e4-9cba-6d8faf1f41d6&package=3f7ed124-c136-4be6-8972-3a6b612b932e&preferRelease=true) [![Schema.NET.Pending NuGet Package Downloads](https://img.shields.io/nuget/dt/Schema.NET.Pending)](https://www.nuget.org/packages/Schema.NET.Pending)
153+
[![Schema.NET.Pending NuGet Package](https://img.shields.io/nuget/v/Schema.NET.Pending.svg)](https://www.nuget.org/packages/Schema.NET.Pending)
154+
155+
[//]: # ([![Schema.NET.Pending NuGet Package Downloads](https://img.shields.io/nuget/dt/Schema.NET.Pending)](https://www.nuget.org/packages/Schema.NET.Pending))
152156

153157
## Continuous Integration
154158

155-
| Name | Operating System | Status | History |
156-
| :--- | :--- | :--- | :--- |
157-
| Azure Pipelines | Ubuntu | [![Azure Pipelines Ubuntu Build Status](https://dev.azure.com/schema-net/Schema.NET/_apis/build/status/Schema.NET?branchName=main&stageName=Build&jobName=Build&configuration=Build%20Linux)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=main) |
158-
| Azure Pipelines | Mac | [![Azure Pipelines Mac Build Status](https://dev.azure.com/schema-net/Schema.NET/_apis/build/status/Schema.NET?branchName=main&stageName=Build&jobName=Build&configuration=Build%20Mac)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=main) |
159-
| Azure Pipelines | Windows | [![Azure Pipelines Windows Build Status](https://dev.azure.com/schema-net/Schema.NET/_apis/build/status/Schema.NET?branchName=main&stageName=Build&jobName=Build&configuration=Build%20Windows)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=main) |
160-
| Azure Pipelines | Overall | [![Azure Pipelines Overall Build Status](https://dev.azure.com/schema-net/Schema.NET/_apis/build/status/Schema.NET?branchName=main)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=main) | [![Azure DevOps Build History](https://buildstats.info/azurepipelines/chart/schema-net/Schema.NET/1?branch=main&includeBuildsFromPullRequest=false)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=main) |
161-
| GitHub Actions | Ubuntu, Mac & Windows | [![GitHub Actions Status](https://github.com/TimmyMC/Schema.NET/workflows/Build/badge.svg?branch=main)](https://github.com/TimmyMC/Schema.NET/actions) | [![GitHub Actions Build History](https://buildstats.info/github/chart/RehanSaeed/Schema.NET?branch=main&includeBuildsFromPullRequest=false)](https://github.com/TimmyMC/Schema.NET/actions) |
162-
| AppVeyor | Ubuntu, Mac & Windows | [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/djxrpkw8ckyf24c1/branch/main?svg=true)](https://ci.appveyor.com/project/RehanSaeed/schema-net/branch/main) | [![AppVeyor Build History](https://buildstats.info/appveyor/chart/RehanSaeed/schema-net?branch=main&includeBuildsFromPullRequest=false)](https://ci.appveyor.com/project/RehanSaeed/schema-net) |
163-
164-
## Contributions and Thanks
165-
166-
Please view the [contributing guide](https://github.com/TimmyMC/Schema.NET/blob/main/.github/CONTRIBUTING.md) for more information.
167-
168-
- [kirkone](https://github.com/kirkone) - CI reads .NET Core version from new global.json file.
169-
- [Turnerj](https://github.com/Turnerj) - Added `System.Text.Json` support, Had all types implement `IEquatable<T>` `GetHashCode` and added extra unit tests and bug fixes.
170-
- [shervinw](https://github.com/shervinw) - Added better null value handling for structs.
171-
- [kirk-marple](https://github.com/kirk-marple) - Refactoring JSON serialization to be more efficient.
172-
- [nickevansuk](https://github.com/nickevansuk) - Adding better null value handling and use HTTPS instead of HTTP.
173-
- [MEmanuelsson](https://github.com/MEmanuelsson) - Added support for the schema.org Date type without time.
174-
- [halovanic](https://github.com/halovanic) - For adding interfaces to Schema.NET types for greater flexibility.
175-
- [AndreSteenbergen](https://github.com/AndreSteenbergen) - For enabling the tool to work on linux.
176-
- [benmccallum](https://github.com/benmccallum) - For adding XSS vlnerability protection.
177-
- [psampaio](https://github.com/psampaio) - Added deserialization support and unit tests.
178-
- [icunningham88](https://github.com/icunningham88) - Improved a test.
159+
| Name | Operating System | Status | History |
160+
| :--- | :--- | :--- |:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
161+
| GitHub Actions | Ubuntu, Mac & Windows | [![GitHub Actions Status](https://github.com/TimmyMC/Schema.NET/workflows/Build/badge.svg?branch=main)](https://github.com/TimmyMC/Schema.NET/actions) | [![GitHub Actions Build History](https://buildstats.info/github/chart/TimmyMC/Schema.NET?branch=main&includeBuildsFromPullRequest=false)](https://github.com/TimmyMC/Schema.NET/actions) |

Source/Schema.NET.Common/OneOrMany{T}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public OneOrMany(T? item)
2929
{
3030
if (item is null || (item is string itemAsString && string.IsNullOrWhiteSpace(itemAsString)))
3131
{
32-
this.collection = [];
32+
this.collection = null;
3333
this.HasOne = false;
3434
}
3535
else
@@ -92,7 +92,7 @@ public OneOrMany(ReadOnlySpan<T?> span)
9292
}
9393
}
9494

95-
this.collection = [];
95+
this.collection = null;
9696
this.HasOne = false;
9797
}
9898

build.cake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ Task("Test")
6262
project.ToString(),
6363
new DotNetTestSettings()
6464
{
65-
Framework = "net8.0",
6665
Blame = true,
6766
Collectors = new string[] { "Code Coverage", "XPlat Code Coverage" },
6867
Configuration = configuration,
@@ -76,9 +75,6 @@ Task("Test")
7675
NoRestore = true,
7776
ResultsDirectory = artefactsDirectory,
7877
});
79-
// Workaround the test-summary GitHub Action not being able to handle empty JUnit test result XML files.
80-
// https://github.com/test-summary/action/issues/19
81-
DeleteFiles($"./**/{project.GetFilenameWithoutExtension()}_NETFramework472.xml");
8278
});
8379

8480
Task("Pack")

0 commit comments

Comments
 (0)