comparison mod_rest/res/schema-xmpp.json @ 4889:52522c71ad1a

mod_rest: Add XEP-0363 HTTP Upload to schemas
author Kim Alvefur <zash@zash.se>
date Wed, 09 Feb 2022 00:34:36 +0100
parents f69c5a443156
children 3dc8e329d233
comparison
equal deleted inserted replaced
4888:dc7c9ae15f43 4889:52522c71ad1a
533 "$ref" : "#/_common/to" 533 "$ref" : "#/_common/to"
534 }, 534 },
535 "type" : { 535 "type" : {
536 "$ref" : "#/_common/type" 536 "$ref" : "#/_common/type"
537 }, 537 },
538 "upload_request" : {
539 "properties" : {
540 "content-type" : {
541 "xml" : {
542 "attribute" : true,
543 "name" : "content-type"
544 }
545 },
546 "filename" : {
547 "type" : "string",
548 "xml" : {
549 "attribute" : true
550 }
551 },
552 "size" : {
553 "type" : "integer",
554 "xml" : {
555 "attribute" : true
556 }
557 }
558 },
559 "required" : [
560 "filename",
561 "size"
562 ],
563 "type" : "object",
564 "xml" : {
565 "name" : "request",
566 "namespace" : "urn:xmpp:http:upload:0"
567 }
568 },
569 "upload_slot" : {
570 "properties" : {
571 "get" : {
572 "properties" : {
573 "url" : {
574 "format" : "uri",
575 "type" : "string",
576 "xml" : {
577 "attribute" : true
578 }
579 }
580 },
581 "type" : "object"
582 },
583 "put" : {
584 "properties" : {
585 "headers" : {
586 "items" : {
587 "properties" : {
588 "name" : {
589 "enum" : [
590 "Authorization",
591 "Cookie",
592 "Expires"
593 ],
594 "type" : "string",
595 "xml" : {
596 "attribute" : true
597 }
598 },
599 "value" : {
600 "type" : "string",
601 "xml" : {
602 "text" : true
603 }
604 }
605 },
606 "required" : [
607 "name",
608 "value"
609 ],
610 "type" : "object",
611 "xml" : {
612 "name" : "header"
613 }
614 },
615 "type" : "array"
616 },
617 "url" : {
618 "format" : "uri",
619 "type" : "string",
620 "xml" : {
621 "attribute" : true
622 }
623 }
624 },
625 "type" : "object"
626 }
627 },
628 "type" : "object",
629 "xml" : {
630 "name" : "slot",
631 "namespace" : "urn:xmpp:http:upload:0"
632 }
633 },
538 "version" : { 634 "version" : {
539 "description" : "Ask about software version information", 635 "description" : "Ask about software version information",
540 "properties" : { 636 "properties" : {
541 "name" : { 637 "name" : {
542 "example" : "My Software", 638 "example" : "My Software",