Mobrovac has submitted this change and it was merged.

Change subject: Add the resource_change event
......................................................................


Add the resource_change event

Bug: T126687
Change-Id: Ic0e0b1d6251f0cc27f0e8c77d80af611252b3461
---
A jsonschema/resource_change/1.yaml
1 file changed, 53 insertions(+), 0 deletions(-)

Approvals:
  Ottomata: Looks good to me, but someone else must approve
  Mobrovac: Verified; Looks good to me, approved
  Ppchelko: Looks good to me, but someone else must approve



diff --git a/jsonschema/resource_change/1.yaml 
b/jsonschema/resource_change/1.yaml
new file mode 100644
index 0000000..749f976
--- /dev/null
+++ b/jsonschema/resource_change/1.yaml
@@ -0,0 +1,53 @@
+title: Resource Change
+description: Represents a change in a resource tied to the specified URI
+$schema: http://json-schema.org/draft-04/schema#
+type: object
+properties:
+  # global event fields
+  meta:
+    type: object
+    properties:
+      topic:
+        type: string
+        description: the queue topic name this message belongs to
+      schema_uri:
+        type: string
+        description: >
+          The URI identifying the jsonschema for this event. This may be just
+          a short uri containing only the name and revision at the end of the
+          URI path.  e.g. schema_name/12345 is acceptable. This field is not
+          required.
+      uri:
+        type: string
+        format: uri
+        description: the unique URI identifying the event / resource
+      request_id:
+        type: string
+        pattern: '^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$'
+        description: the unique UUID v1 ID of the event derived from the 
X-Request-Id header
+      id:
+        type: string
+        pattern: '^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$'
+        description: the unique ID of this event; should match the dt field
+      dt:
+        type: string
+        format: date-time
+        description: the time stamp of the event, in ISO8601 format
+      domain:
+        type: string
+        description: the domain the event pertains to
+    required:
+      - topic
+      - uri
+      - id
+      - dt
+      - domain
+  # event-specific fields
+  tags:
+    type: array
+    items:
+      type: string
+    uniqueItems: true
+    description: the list of tags associated with the change event for the 
resource
+required:
+  - meta

-- 
To view, visit https://gerrit.wikimedia.org/r/273916
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic0e0b1d6251f0cc27f0e8c77d80af611252b3461
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/event-schemas
Gerrit-Branch: master
Gerrit-Owner: Mobrovac <mobro...@wikimedia.org>
Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org>
Gerrit-Reviewer: Eevans <eev...@wikimedia.org>
Gerrit-Reviewer: GWicke <gwi...@wikimedia.org>
Gerrit-Reviewer: Mobrovac <mobro...@wikimedia.org>
Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: Ottomata <o...@wikimedia.org>
Gerrit-Reviewer: Ppchelko <ppche...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to