Skip to content

Commit

Permalink
Merge pull request #693 from lacuna-tech/fix/neil/policy-to-policies-…
Browse files Browse the repository at this point in the history
…jsonschema-examples

Align Policy JSON Schema & Examples with spec
  • Loading branch information
schnuerle authored Sep 17, 2021
2 parents b8362b8 + ed839ff commit 09261bb
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
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

0 comments on commit 09261bb

Please sign in to comment.