Skip to content

Commit ba46271

Browse files
committed
[feature] replace the bitag schema with the newly made schema
1 parent 243203f commit ba46271

File tree

4 files changed

+55
-118
lines changed

4 files changed

+55
-118
lines changed
Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
version 1.2
1+
version 1.1
22
@totalColumns 54
3-
name: BroadbandLabels
4-
date_published: date
5-
regulator_name: string
6-
regulator_version_number: numeric, range(1, 99)
7-
connection_type: string
8-
fcc_registration_number: numeric, range(0000000000, 9999999999)
9-
unique_plan_identifier: string, length(*,26)
10-
network_technology_type: range (0, 999)
11-
provider_name: string, length(*,100)
12-
service_plan_name: length(*,100)
13-
bandwidth_download_units: string, length(4)
14-
bandwidth_download_marketed_low: numeric, length(1,3)
15-
bandwidth_download_marketed_high: numeric, length(1,3)
16-
bandwidth_download_typical_low: numeric, length(1,3)
17-
bandwidth_download_typical_high: numeric, length(1,3)
18-
bandwidth_upload_units: string, length(4)
19-
bandwidth_upload_marketed_low: numeric, length(1,3)
20-
bandwidth_upload_marketed_high: numeric, length(1,3)
21-
bandwidth_upload_typical_low: numeric, length(1,3)
22-
bandwidth_upload_typical_high: numeric, length(1,3)
23-
latency_idle_low: numeric, length(*,10)
24-
latency_idle_high: numeric, length(*,10)
25-
currency: string, length(3)
26-
price_type: string, enumerated string value
27-
price_details: string
28-
price_recurring: numeric
29-
fee_introductory: numeric
30-
fee_introductory_description: string
31-
contract_required: string, length(2,3), enumerated string value
32-
contract_details: string
33-
contract_terms_uri: identifier, uri
34-
fee_one_time_amount: numeric
35-
fee_one_time_details: string
36-
fee_recurring: numeric
37-
fee_recurring_description: string
38-
fee_pass_through_recurring: string
39-
fee_pass_through_recurring_description: string
40-
fee_early_termination: string
41-
fee_early_termination_description: string
42-
government_taxes: string, enumerated string value
43-
policy_data_usage: string, length(2,3), enumerated string value
44-
fee_data_usage: string
45-
fee_data_usage_description: string
46-
uri_data_usage: identifier, uri
47-
restrictions_apply: string, length(2,3), enumerated string value
48-
uri_policy_network_management: identifier, uri
49-
uri_policy_privacy: identifier, uri
50-
uri_customer_support: identifier, uri
51-
customer_support_phone: numeric, length(*,15)
52-
country_code: string, length(3)
53-
asn: string, length(0,4294967295)
54-
uri_policy_additional_terms: identifier, uri
55-
language: string, length(3)
56-
digital_signature: string
3+
date_published: xDate
4+
regulator_name: empty or upperCase
5+
regulator_version_number: empty or range(1, 99)
6+
connection_type: notEmpty
7+
fcc_registration_number: empty or range(0, 9999999999)
8+
unique_plan_identifier: empty or regex("^[FM][0-9]{1,10}[A-Z0-9]{1,15}$")
9+
network_technology_type: range(0, 999)
10+
provider_name: length(1,100)
11+
service_plan_name: empty or length(0,100)
12+
bandwidth_download_units: length(4)
13+
bandwidth_download_marketed_low: empty or range(1,999)
14+
bandwidth_download_marketed_high: empty or range(1,999)
15+
bandwidth_download_typical_low: range(1,999)
16+
bandwidth_download_typical_high: range(1,999)
17+
bandwidth_upload_units: length(4)
18+
bandwidth_upload_marketed_low: empty or range(1,999)
19+
bandwidth_upload_marketed_high: empty or range(1,999)
20+
bandwidth_upload_typical_low: range(1,999)
21+
bandwidth_upload_typical_high: range(1,999)
22+
latency_idle_low: range(0,1000)
23+
latency_idle_high: range(0,1000)
24+
currency: empty or regex("^[A-Z]{3}$")
25+
price_type: any("Pre-Paid", "Post-Paid", "Volume-Based", "Per-Line", "Per-Device", "Per-Location", "Per-Organization", "Per-Person", "Per-Time", "Other")
26+
price_details: empty or length(0, 500)
27+
price_recurring: notEmpty and range(0, 9999999999) // TODO: this needs to limit decimal places to 2
28+
fee_introductory: empty or range(0, 9999999999) // TODO: this needs to limit decimal places to 2
29+
fee_introductory_description: empty or length(0, 500)
30+
contract_required: any("Yes", "No")
31+
contract_details: empty or length(0, 500)
32+
contract_terms_uri: empty or uri
33+
fee_one_time_amount: empty or range(0, 9999999999) // TODO: this needs to limit decimal places to 2
34+
fee_one_time_details: empty or length(0, 500)
35+
fee_recurring: empty or range(0, 9999999999) // TODO: this needs to limit decimal places to 2
36+
fee_recurring_description: empty or length(0, 500)
37+
fee_pass_through_recurring: empty or length(0, 500) // TODO: the decription is a string but it's a number
38+
fee_pass_through_recurring_description: empty or length(0, 500)
39+
fee_early_termination: range(0, 9999999999) // TODO: the decription is a string but it's a number, also needs to be limited to 2 decimal places
40+
fee_early_termination_description: empty or length(0, 500)
41+
government_taxes: any("Included", "Varies", "Not Applicable")
42+
policy_data_usage: any("Yes", "No")
43+
fee_data_usage: empty or range(0, 9999999999) // TODO: the decription is a string but it's a number, also needs to be limited to 2 decimal places
44+
fee_data_usage_description: empty or length(0, 500)
45+
uri_data_usage: empty or uri
46+
restrictions_apply: any("Yes", "No")
47+
restrictions_description: empty or length(0, 500)
48+
uri_policy_network_management: empty or uri
49+
uri_policy_privacy: empty or uri
50+
uri_customer_support: empty or uri
51+
customer_support_phone: empty or regex("^[0-9]{7,15}$") // TODO: min length for phone number is 7
52+
country_code: empty or regex("^[A-Z]{3}$") @optional
53+
asn: empty or length(0,4294967295) @optional
54+
uri_policy_additional_terms: empty or uri @optional
55+
language: empty or length(3) @optional
56+
digital_signature: empty or length(0, 500) @optional

src/main/resources/schemas/schema.csvs

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/main/resources/schemas/schema.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)