• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scriban / scriban / 7928266252
79%

Build:
DEFAULT BRANCH: master
Ran 16 Feb 2024 09:05AM UTC
Jobs 1
Files 166
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Feb 2024 09:00AM UTC coverage: 78.226% (+0.3%) from 77.932%
7928266252

push

github

web-flow
Implements Full Support for System.Text.Json - Closes #527 (#533)

* feat(json-support): Add Support for System.Text.Json.JsonElement #527

- Introduced JsonElementExtensions.cs to convert JsonElements into Scriban objects
- Updated ScriptArray.cs and ScriptObject.cs to handle JsonElements
- Enhanced ScriptObjectExtensions.cs with methods for importing JsonElements into script objects
- Extended Template.cs with a Render method that accepts a JsonElement as input
- Added new test cases to validate JSON support

* feat(json-support): Add object.form_json and object.to_json functions #527

- Implemented FromJson function to convert JSON to Scriban value
- Implemented ToJson function to convert Scriban value to JSON
- Added new test cases for JSON parsing and conversion in TestObjectFunctions.cs

* feat(json-support): Updating docs to show new functionality

* feat(json-support): Removed unnecessary JSON support from ScriptArray and ScriptObject

- Deleted methods that added JsonElement to ScriptArray and ScriptObject
- Removed JsonElement handling in Add and SetValue methods of ScriptObject
- Erased test cases for adding json values in TestScriptArrayJson.cs and TestScriptObjectJson.cs

* chore(json-support): Fix Docs unit test - Updated JSON formatting in builtins.md

* feat(json-support): Move JSON handling to import logic

- Moved JSON conversion logic to JsonElementExtensions.cs
- Removed JSON handling code from ScriptObject.cs to ScriptObjectExtensions.cs import
- Added ConvertValue method to handle Scriban value conversions

* fix(json-support): Remove explicit ScriptObject.From(JsonElement) method

- Deleted method for creating a ScriptObject from a JsonElement as this functionality can be achieved using generic from object method
- Removed unused using directives in ScriptObject.cs and ScriptObjectExtensions.cs

* fix(json-support): Remove explicit Template.Render JsonElement method

- Removed Render method w... (continued)

5699 of 8060 branches covered (70.71%)

Branch coverage included in aggregate %.

11952 of 14504 relevant lines covered (82.4%)

2085.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7928266252.1 16 Feb 2024 09:05AM UTC 0
78.23
GitHub Action Run
Source Files on build 7928266252
Detailed source file information is not available for this build.
  • Back to Repo
  • f2f3cf41 on github
  • Prev Build on master (#7458131667)
  • Next Build on master (#7939987352)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc