This repository was archived by the owner on Jan 12, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "name" : " openapi-workspaces" ,
33 "license" : " MIT" ,
44 "private" : true ,
5- "version" : " 0.54.12 " ,
5+ "version" : " 0.54.13 " ,
66 "workspaces" : [
77 " projects/json-pointer-helpers" ,
88 " projects/openapi-io" ,
Original file line number Diff line number Diff line change 22 "name" : " @useoptic/fastify-capture" ,
33 "license" : " MIT" ,
44 "packageManager" : " yarn@4.1.1" ,
5- "version" : " 0.54.12 " ,
5+ "version" : " 0.54.13 " ,
66 "main" : " build/index.js" ,
77 "types" : " build/index.d.ts" ,
88 "files" : [
Original file line number Diff line number Diff line change 22 "name" : " @useoptic/json-pointer-helpers" ,
33 "license" : " MIT" ,
44 "packageManager" : " yarn@4.1.1" ,
5- "version" : " 0.54.12 " ,
5+ "version" : " 0.54.13 " ,
66 "main" : " build/index.js" ,
77 "types" : " build/index.d.ts" ,
88 "files" : [
Original file line number Diff line number Diff line change 22 "name" : " @useoptic/openapi-io" ,
33 "license" : " MIT" ,
44 "packageManager" : " yarn@4.1.1" ,
5- "version" : " 0.54.12 " ,
5+ "version" : " 0.54.13 " ,
66 "main" : " build/index.js" ,
77 "types" : " build/index.d.ts" ,
88 "files" : [
Original file line number Diff line number Diff line change 22 "name" : " @useoptic/openapi-utilities" ,
33 "license" : " MIT" ,
44 "packageManager" : " yarn@4.1.1" ,
5- "version" : " 0.54.12 " ,
5+ "version" : " 0.54.13 " ,
66 "main" : " build/index.js" ,
77 "types" : " build/index.d.ts" ,
88 "files" : [
Original file line number Diff line number Diff line change 22 "name" : " @useoptic/optic" ,
33 "license" : " MIT" ,
44 "packageManager" : " yarn@4.1.1" ,
5- "version" : " 0.54.12 " ,
5+ "version" : " 0.54.13 " ,
66 "main" : " build/index.js" ,
77 "types" : " build/index.d.ts" ,
88 "files" : [
Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ type SpecFromInput =
9292 url : string ;
9393 } ;
9494
95+ function isWindowsDrivePath ( raw : string ) {
96+ // matches windows drive paths (C:\... or d:\...)
97+ return / ^ [ a - z A - Z ] : \\ / . test ( raw ) ;
98+ }
99+
95100export function parseOpticRef ( raw ?: string | null ) : SpecFromInput {
96101 raw = raw ?? 'null:' ;
97102 let isUrl = false ;
@@ -118,10 +123,7 @@ export function parseOpticRef(raw?: string | null): SpecFromInput {
118123 apiId : maybeCloudMatch . groups . apiId ,
119124 tag : maybeCloudMatch . groups . tag ,
120125 } ;
121- } else if (
122- raw . includes ( ':' ) &&
123- ! ( raw . startsWith ( 'C:' ) || raw . startsWith ( 'D:' ) )
124- ) {
126+ } else if ( raw . includes ( ':' ) && ! isWindowsDrivePath ( raw ) ) {
125127 const index = raw . indexOf ( ':' ) ;
126128 const rev = raw . substring ( 0 , index ) ;
127129 const name = raw . substring ( index + 1 ) ;
Original file line number Diff line number Diff line change 22 "name" : " @useoptic/rulesets-base" ,
33 "license" : " MIT" ,
44 "packageManager" : " yarn@4.1.1" ,
5- "version" : " 0.54.12 " ,
5+ "version" : " 0.54.13 " ,
66 "main" : " build/index.js" ,
77 "types" : " build/index.d.ts" ,
88 "files" : [
Original file line number Diff line number Diff line change 22 "name" : " @useoptic/standard-rulesets" ,
33 "license" : " MIT" ,
44 "packageManager" : " yarn@4.1.1" ,
5- "version" : " 0.54.12 " ,
5+ "version" : " 0.54.13 " ,
66 "main" : " build/index.js" ,
77 "types" : " build/index.d.ts" ,
88 "files" : [
You can’t perform that action at this time.
0 commit comments