Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Policy JSON Schema & Examples with spec #693

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion policy/examples/idle-time.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.0.0",
"data": {
"policy": [
"policies": [
{
"policy_id": "a2c9a65f-fd85-463e-9564-fc95ea473f7d",
"name": "Idle Times",
Expand Down
2 changes: 1 addition & 1 deletion policy/examples/metered-parking-fees.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.0.0",
"data": {
"policy": [
"policies": [
{
"policy_id": "6a3dd008-836a-11ea-bc55-0242ac130003",
"published_date": 1586736000000,
Expand Down
2 changes: 1 addition & 1 deletion policy/examples/per-trip-fees.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.0.0",
"data": {
"policy": [
"policies": [
{
"policy_id": "d2567b3c-3071-48a6-bbeb-3424721dbd12",
"published_date": 1586736000000,
Expand Down
2 changes: 1 addition & 1 deletion policy/examples/prohibited-zone.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.0.0",
"data": {
"policy": [
"policies": [
{
"policy_id": "39a653be-7180-4188-b1a6-cae33c280341",
"name": "Prohibited Dockless Zones",
Expand Down
2 changes: 1 addition & 1 deletion policy/examples/provider-cap.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.0.0",
"data": {
"policy": [
"policies": [
{
"name": "Test City Mobility Caps: Company X",
"description": "Mobility caps as described in the One-Year Permit",
Expand Down
2 changes: 1 addition & 1 deletion policy/examples/required-parking.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.0.0",
"data": {
"policy": [
"policies": [
{
"policy_id": "99f7a469-6e3a-4981-9313-c2f6c0bbd5ce",
"name": "Test City Mobility Hubs",
Expand Down
2 changes: 1 addition & 1 deletion policy/examples/speed-limits.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.0.0",
"data": {
"policy": [
"policies": [
{
"policy_id": "95645117-fd85-463e-a2c9-fc95ea47463e",
"name": "Speed Limits",
Expand Down
2 changes: 1 addition & 1 deletion policy/examples/tiered-parking-fees-per-hour.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.2.0",
"data": {
"policy": [
"policies": [
{
"name": "Tiered Dwell Time Example",
"description": "First hour $2, second hour $4, every hour onwards $10",
Expand Down
2 changes: 1 addition & 1 deletion policy/examples/tiered-parking-fees-total.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.2.0",
"data": {
"policy": [
"policies": [
{
"name": "Tiered Dwell Time Example",
"description": "If parked for <1hr $2 upon exit, if parked for 1-2 hours $4 upon exit, if parked for longer than 2 hours $10 upon exit",
Expand Down
2 changes: 1 addition & 1 deletion policy/examples/vehicle-row-fees.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"updated": 0,
"version": "1.0.0",
"data": {
"policy": [
"policies": [
{
"policy_id": "4137a47c-836a-11ea-bc55-0242ac130003",
"published_date": 1586736000000,
Expand Down
2 changes: 1 addition & 1 deletion schema/templates/policy/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
"policy"
],
"properties": {
"policy": {
"policies": {
"$id": "#/properties/data/properties/policy",
"type": "array",
"title": "The policy payload",
Expand Down