Title: Schema validation => invalid messages · Issue #8 · JavaIsJavaScript/OCPP-2.0-CP-Simulator · GitHub
Open Graph Title: Schema validation => invalid messages · Issue #8 · JavaIsJavaScript/OCPP-2.0-CP-Simulator
X Title: Schema validation => invalid messages · Issue #8 · JavaIsJavaScript/OCPP-2.0-CP-Simulator
Description: I think I found two bugs where the sent messages are invalid against the schema. Here are the corrected functions: function NotifyChargingLimit(charge_limit = 10, limit_source = "SO") { sessionStorage.setItem('LastAction', "NotifyChargin...
Open Graph Description: I think I found two bugs where the sent messages are invalid against the schema. Here are the corrected functions: function NotifyChargingLimit(charge_limit = 10, limit_source = "SO") { sessionStor...
X Description: I think I found two bugs where the sent messages are invalid against the schema. Here are the corrected functions: function NotifyChargingLimit(charge_limit = 10, limit_source = "SO") { s...
Opengraph URL: https://github.com/JavaIsJavaScript/OCPP-2.0-CP-Simulator/issues/8
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Schema validation =\u003e invalid messages","articleBody":"I think I found two bugs where the sent messages are invalid against the schema. Here are the corrected functions:\r\n\r\n\r\n\t\t\tfunction NotifyChargingLimit(charge_limit = 10, limit_source = \"SO\") {\r\n\t\t\t\tsessionStorage.setItem('LastAction', \"NotifyChargingLimit\");\r\n\t\t\t\tvar LSN = JSON.stringify([2, id, \"NotifyChargingLimit\", {\r\n\t\t\t\t\t\"evseId\": 1,\r\n\t\t\t\t\t\"chargingLimit\": {\r\n\t\t\t\t\t\t\"chargingLimitSource\": limit_source,\r\n\t\t\t\t\t\t\"isGridCritical\": \"False\",\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"chargingSchedule\": [charging_schedule(charge_limit)]\r\n\t\t\t\t}]);\r\n\t\t\t\t_websocket.send(LSN);\r\n\t\t\t}\r\n\r\n\t\t\tfunction charging_schedule(charge_limit){\r\n\t\t\t\treturn {\r\n\t\t\t\t\t\"id\": 0,\r\n\t\t\t\t\t\"chargingRateUnit\": \"A\",\r\n\t\t\t\t\t\"chargingSchedulePeriod\": [{\r\n\t\t\t\t\t\t\"startPeriod\": 0,\r\n\t\t\t\t\t\t\"limit\": charge_limit\r\n\t\t\t\t\t}]\r\n\t\t\t\t}\r\n\t\t\t}","author":{"url":"https://github.com/dallmann-consulting","@type":"Person","name":"dallmann-consulting"},"datePublished":"2021-01-07T20:15:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/8/OCPP-2.0-CP-Simulator/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:adda1d8b-e624-ee34-2f0a-b20f18768738 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC0E:299899:2D5FAF3:3AE2132:698C2986 |
| html-safe-nonce | 667cff5273efba7760d6a9a95c90e22844a373cdd4ce90bb0b9a1721a2f8b278 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzBFOjI5OTg5OToyRDVGQUYzOjNBRTIxMzI6Njk4QzI5ODYiLCJ2aXNpdG9yX2lkIjoiNTIxMTcyMTg3Mzc1OTE1MjUxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4e5d14835d6401ae5477a077b8d813ac38c289335652e64224d116fe41f4e4d4 |
| hovercard-subject-tag | issue:781581338 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaIsJavaScript/OCPP-2.0-CP-Simulator/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f1003e6866be56753f54bd57a434e7bcf44ea4c8f574816ddd0b6571a6cd0bf/JavaIsJavaScript/OCPP-2.0-CP-Simulator/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f1003e6866be56753f54bd57a434e7bcf44ea4c8f574816ddd0b6571a6cd0bf/JavaIsJavaScript/OCPP-2.0-CP-Simulator/issues/8 |
| og:image:alt | I think I found two bugs where the sent messages are invalid against the schema. Here are the corrected functions: function NotifyChargingLimit(charge_limit = 10, limit_source = "SO") { sessionStor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dallmann-consulting |
| hostname | github.com |
| expected-hostname | github.com |
| None | 640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaIsJavaScript/OCPP-2.0-CP-Simulator git https://github.com/JavaIsJavaScript/OCPP-2.0-CP-Simulator.git |
| octolytics-dimension-user_id | 31954771 |
| octolytics-dimension-user_login | JavaIsJavaScript |
| octolytics-dimension-repository_id | 131590759 |
| octolytics-dimension-repository_nwo | JavaIsJavaScript/OCPP-2.0-CP-Simulator |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 131590759 |
| octolytics-dimension-repository_network_root_nwo | JavaIsJavaScript/OCPP-2.0-CP-Simulator |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3d444f0a47beeeac94cddbb51c91ab408befe8d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width