File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ private static string ConvertByteArrayToString(byte[] hash)
589
589
// Enables setting the complete JSON path for nested subschemas e.g. #/components/schemas/person/properties/address
590
590
if ( useExternal )
591
591
{
592
- var relPathSegment = referenceV3 . Split ( new char [ ] { '#' } , StringSplitOptions . RemoveEmptyEntries ) [ 1 ] ;
592
+ var relPathSegment = referenceV3 . Split ( [ '#' ] , StringSplitOptions . RemoveEmptyEntries ) [ 1 ] ;
593
593
relativePath = $ "#{ relPathSegment } ";
594
594
}
595
595
else
@@ -625,7 +625,7 @@ private static bool IsSubComponent(string reference)
625
625
626
626
if ( fragment . StartsWith ( "/components/schemas/" , StringComparison . OrdinalIgnoreCase ) )
627
627
{
628
- var segments = fragment . Split ( new char [ ] { '/' } , StringSplitOptions . RemoveEmptyEntries ) ;
628
+ var segments = fragment . Split ( [ '/' ] , StringSplitOptions . RemoveEmptyEntries ) ;
629
629
630
630
// Expect exactly 3 segments for root-level schema: ["components", "schemas", "person"]
631
631
// Anything longer means it's a subcomponent.
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ public bool Contains(string location)
347
347
348
348
if ( uri is not null )
349
349
{
350
- pathSegments = uri . Fragment . Split ( new char [ ] { '/' } , StringSplitOptions . RemoveEmptyEntries ) ;
350
+ pathSegments = uri . Fragment . Split ( [ '/' ] , StringSplitOptions . RemoveEmptyEntries ) ;
351
351
352
352
// Build the base path for the root schema: "#/components/schemas/person"
353
353
var fragment = OpenApiConstants . ComponentsSegment + ReferenceType . Schema . GetDisplayName ( ) + ComponentSegmentSeparator + pathSegments [ 3 ] ;
You can’t perform that action at this time.
0 commit comments