Skip to content

Improve json formatting#1

Merged
sebastienros merged 3 commits intoUseSchemaGeneratorEverywherefrom
sebros/formatting
Dec 16, 2023
Merged

Improve json formatting#1
sebastienros merged 3 commits intoUseSchemaGeneratorEverywherefrom
sebros/formatting

Conversation

@sebastienros
Copy link
Collaborator

No description provided.


foreach (var match in Indentation().EnumerateMatches(value))
{
if (match.Index > index)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In what case is match.Index <= index possible?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the first match is at the beginning of the line.

Aspire.sln Outdated
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aspire.MongoDB.Driver.Tests", "tests\Aspire.MongoDB.Driver.Tests\Aspire.MongoDB.Driver.Tests.csproj", "{E592E447-BA3C-44FA-86C1-EBEDC864A644}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aspire.MongoDB.Driver.Tests", "tests\Aspire.MongoDB.Driver.Tests\Aspire.MongoDB.Driver.Tests.csproj", "{E592E447-BA3C-44FA-86C1-EBEDC864A644}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigurationSchemaGenerator.Tests", "tests\ConfigurationSchemaGenerator.Tests\ConfigurationSchemaGenerator.Tests.csproj", "{00FEA181-84C9-42A7-AC81-29A9F176A1A0}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be 9A19103F right?

@sebastienros sebastienros merged commit e67d071 into UseSchemaGeneratorEverywhere Dec 16, 2023
@sebastienros sebastienros deleted the sebros/formatting branch December 16, 2023 00:52
eerhardt added a commit that referenced this pull request Jan 2, 2024
…otnet#1423)

* Update the rest of the components to use the ConfigSchemaGenerator.

Also fixing a couple bugs in the generator:

- Allow for just a LoggingCategories attribute
- Fix a bug in the exclusion paths, which needs the node to be hooked to the parent to get the full path
- Skip unsupported collections
- Add some more int types

* Improve json formatting (#1)

---------

Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
eerhardt pushed a commit that referenced this pull request Feb 26, 2025
eerhardt pushed a commit that referenced this pull request Feb 26, 2025
eerhardt pushed a commit that referenced this pull request Feb 26, 2025
eerhardt added a commit that referenced this pull request Jul 15, 2025
There are expectations in other integrations that primitive environment variables are serialized to strings and not random objects like enums and bools.

Fix dotnet#10432

Related Work Items: #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants