@balena/sbvr-types
Advanced tools
Comparing version 5.2.0 to 6.0.0-build-otaviojacobi-change-contents-for-snake-case-aaa12269901e364533cf2aa45a958948ce0339de-1
@@ -7,2 +7,7 @@ # Change Log | ||
# v6.0.0 | ||
## (2023-08-08) | ||
* Change contents to snake_case [Otávio Jacobi] | ||
# v5.2.0 | ||
@@ -9,0 +14,0 @@ ## (2023-08-08) |
@@ -5,4 +5,4 @@ import type { CastNode, ExtractJSONPathAsTextNode, ReferencedFieldNode } from '@balena/abstract-sql-compiler'; | ||
href: string; | ||
contentType?: string; | ||
contentDisposition?: string; | ||
content_type?: string; | ||
content_disposition?: string; | ||
size?: number; | ||
@@ -9,0 +9,0 @@ }; |
@@ -15,4 +15,4 @@ "use strict"; | ||
<Property Name="href" Nullable="false" Type="Edm.String"/>\ | ||
<Property Name="contentType" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="contentDisposition" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="content_type" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="content_disposition" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="size" Nullable="true" Type="Edm.Int64"/>\ | ||
@@ -37,3 +37,3 @@ </ComplexType>`, | ||
referencedField, | ||
['TextArray', ['EmbeddedText', 'contentType']], | ||
['TextArray', ['EmbeddedText', 'content_type']], | ||
], | ||
@@ -43,3 +43,3 @@ 'Content Disposition': (referencedField) => [ | ||
referencedField, | ||
['TextArray', ['EmbeddedText', 'contentDisposition']], | ||
['TextArray', ['EmbeddedText', 'content_disposition']], | ||
], | ||
@@ -79,4 +79,4 @@ Size: (referencedField) => [ | ||
href: refData.href, | ||
contentType: refData.contentType, | ||
contentDisposition: refData.contentDisposition, | ||
content_type: refData.content_type, | ||
content_disposition: refData.content_disposition, | ||
size: refData.size, | ||
@@ -102,8 +102,8 @@ }; | ||
} | ||
if (value.contentType != null && typeof value.contentType !== 'string') { | ||
throw new Error('contentType must be a string or undefined'); | ||
if (value.content_type != null && typeof value.content_type !== 'string') { | ||
throw new Error('content_type must be a string or undefined'); | ||
} | ||
if (value.contentDisposition != null && | ||
typeof value.contentDisposition !== 'string') { | ||
throw new Error('contentDisposition must be a string or undefined'); | ||
if (value.content_disposition != null && | ||
typeof value.content_disposition !== 'string') { | ||
throw new Error('content_disposition must be a string or undefined'); | ||
} | ||
@@ -110,0 +110,0 @@ if (value.size != null && !Number.isInteger(value.size)) { |
{ | ||
"name": "@balena/sbvr-types", | ||
"version": "5.2.0", | ||
"version": "6.0.0-build-otaviojacobi-change-contents-for-snake-case-aaa12269901e364533cf2aa45a958948ce0339de-1", | ||
"description": "SBVR type definitions.", | ||
@@ -58,4 +58,4 @@ "main": "out", | ||
"versionist": { | ||
"publishedAt": "2023-08-08T20:56:02.926Z" | ||
"publishedAt": "2023-08-08T21:37:05.368Z" | ||
} | ||
} |
@@ -11,4 +11,4 @@ import * as TypeUtils from '../type-utils'; | ||
href: string; | ||
contentType?: string; | ||
contentDisposition?: string; | ||
content_type?: string; | ||
content_disposition?: string; | ||
size?: number; | ||
@@ -27,4 +27,4 @@ }; | ||
<Property Name="href" Nullable="false" Type="Edm.String"/>\ | ||
<Property Name="contentType" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="contentDisposition" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="content_type" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="content_disposition" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="size" Nullable="true" Type="Edm.Int64"/>\ | ||
@@ -54,3 +54,3 @@ </ComplexType>`, | ||
referencedField, | ||
['TextArray', ['EmbeddedText', 'contentType']], | ||
['TextArray', ['EmbeddedText', 'content_type']], | ||
], | ||
@@ -62,3 +62,3 @@ 'Content Disposition': ( | ||
referencedField, | ||
['TextArray', ['EmbeddedText', 'contentDisposition']], | ||
['TextArray', ['EmbeddedText', 'content_disposition']], | ||
], | ||
@@ -104,4 +104,4 @@ Size: (referencedField: ReferencedFieldNode): CastNode => [ | ||
href: refData.href, | ||
contentType: refData.contentType, | ||
contentDisposition: refData.contentDisposition, | ||
content_type: refData.content_type, | ||
content_disposition: refData.content_disposition, | ||
size: refData.size, | ||
@@ -134,10 +134,10 @@ }; | ||
} | ||
if (value.contentType != null && typeof value.contentType !== 'string') { | ||
throw new Error('contentType must be a string or undefined'); | ||
if (value.content_type != null && typeof value.content_type !== 'string') { | ||
throw new Error('content_type must be a string or undefined'); | ||
} | ||
if ( | ||
value.contentDisposition != null && | ||
typeof value.contentDisposition !== 'string' | ||
value.content_disposition != null && | ||
typeof value.content_disposition !== 'string' | ||
) { | ||
throw new Error('contentDisposition must be a string or undefined'); | ||
throw new Error('content_disposition must be a string or undefined'); | ||
} | ||
@@ -144,0 +144,0 @@ if (value.size != null && !Number.isInteger(value.size)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
131793
2