Changeset 77


Ignore:
Timestamp:
06/29/09 09:11:38 (16 years ago)
Author:
lgiessmann
Message:

json-server: fixed a bug with tmcl-type-validation when there is no topictype or no topictype-constraint or if they isn't either a topictype nor a topictype-constraint

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/json/json_tmcl.lisp

    r70 r77  
    3636                    (get-constraints-of-topic topics :treat-as treat-as)))
    3737               (concatenate 'string "\"topicConstraints\":" value))))
    38         (let ((available-associations ;what's with association which have only a associationrole-constraints?
     38        (let ((available-associations
    3939               (remove-duplicates
    4040                (loop for topic in topics
  • TabularUnified trunk/src/json/json_tmcl_validation.lisp

    r70 r77  
    288288
    289289    (when (not topictype-constraint)
    290       (return-from valid-instance-p topic-instance))
     290      (return-from valid-instance-p (list topic-instance)))
    291291
    292292    (when (and topictype-constraint
  • TabularUnified trunk/src/rest_interface/set-up-json-interface.lisp

    r70 r77  
    170170          (let ((json-data (hunchentoot:raw-post-data :external-format external-format :force-text t)))
    171171            (handler-case (let ((psis
    172                                  (json:decode-json-from-string json-data)))
    173                             (let ((tmcl 
     172                                 (json:decode-json-from-string json-data)))                         
     173                            (let ((tmcl
    174174                                   (json-tmcl:get-constraints-of-fragment psis :treat-as treat-as)))
    175175                              (if tmcl
Note: See TracChangeset for help on using the changeset viewer.